wrap_error | R Documentation |
This function is used to capture errors, typically inside a tryCatch()
statement and output them in a clean and readable way. The function provides
line-wrapping, with a configurable width. When printing the error message, it
prefixes the text with "#E>
" to make it easier to look for the error.
wrap_error(e, wrap = 50)
e |
The error to wrap. |
wrap |
How many characters per line before wrapping. |
The original error is returned invisibly.
tryCatch(stop("This is an error"), error=wrap_error)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.