throw_error | R Documentation |
throw_error( msg = "Error code: 1234", .console = FALSE, .log = FALSE, .envir = parent.frame() )
msg |
(character) Error message. See |
.console |
(logical) Output to console |
.log |
(logical) Output to log (console or file depending on logging settings) TODO-20220201-1627: flesh out logging details |
.envir |
(environment) Environment in which to evaluate msg expression |
## Not run: throw_error(msg = "This is an error") error_code <- 1234 throw_error(msg = "This is an error (error code: {error_code})", ) throw_error(msg = "This is an error", .console = TRUE) throw_error(msg = "This is an error", .log = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.