Description Usage Arguments Value Details
View source: R/Miscellaneous_Functions.R
Setting global 'warn' and 'error' options
1 2 3 4 5 6 | set_options_warn_error(
debug.warn.level = 1L,
debug.dump.objects = FALSE,
dir_prj = ".",
verbose = FALSE
)
|
debug.warn.level |
An integer value. Sets the |
debug.dump.objects |
A logical value. Sets the |
dir_prj |
A character string. The path at which the RData
file are saved if |
verbose |
A logical value. |
A list of length two with elements 'warn' and 'error' containing the status of these two global options before resetting them by this function.
Accepted values of debug.warn.level
are
warn < 0: warnings are ignored
warn = 0: warnings are stored until the top-level function returns
warn = 1: warnings are printed as they occur
warn = 2: all warnings are turned into errors.
If debug.dump.objects
is TRUE
, then code will on error dump
objects and frames to files at path dir_prj
, and (if not in
interactive mode) quit. To view the dumped frames first attach them with
load(file.path(dir_prj, "last.dump.rda"))
and then browse them with
debugger(`path/to/file/last.dump.rda`)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.