
Evaluate an expression, converting any error into a Shiny validation message
Source:R/validate.R
validate_or_catch.RdWraps tryCatch() around an expression so that an error raised by a
computation (e.g. runPCA() or run_clustering() rejecting
degenerate input) surfaces as a validate message in
the UI rather than crashing the app.