pr_set_debug | R Documentation |
To hide any error messages in production, set the debug value to FALSE
.
The debug
value is enabled by default for interactive()
sessions.
pr_set_debug(pr, debug = interactive())
pr |
A Plumber API. Note: The supplied Plumber API object will also be updated in place as well as returned by the function. |
debug |
|
The Plumber router with the new debug setting.
## Not run:
# Will contain the original error message
pr() %>%
pr_set_debug(TRUE) %>%
pr_get("/boom", function() stop("boom")) %>%
pr_run()
# Will NOT contain an error message
pr() %>%
pr_set_debug(FALSE) %>%
pr_get("/boom", function() stop("boom")) %>%
pr_run()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.