inlabru log message methods
Resets the inlabru log object
Retrieve, add, and/or print log messages
bru_log_reset() bru_log_get(pretty = FALSE) bru_log_message( ..., domain = NULL, appendLF = TRUE, verbosity = 1, allow_verbose = TRUE, verbose = NULL, verbose_store = NULL ) bru_log(txt, verbose = NULL) bru_log_active(activation = NULL)
pretty |
logical; If |
... |
Zero or more objects passed on to |
domain |
Domain for translations, passed on to |
appendLF |
logical; whether to add a newline to the message. Only used for verbose output. |
verbosity |
numeric value describing the verbosity level of the message |
allow_verbose |
Whether to allow verbose output. Must be set to FALSE until the options object has been initialised. |
verbose |
logical; if |
verbose_store |
Same as |
txt |
character; log message. |
activation |
logical; whether to activate ( |
bru_log_reset()
clears the log contents.
bru_log_message
DETAILS
The log message is stored if the log is active, see
bru_log_active()
bru_log_get
RETURN_VALUE
bru_log_message
OUTPUT_DESCRIPTION
bru_log
invisibly returns the added log message.
bru_log_active
returns the previous activation state
Fabian E. Bachl bachlfab@gmail.com and Finn Lindgren finn.lindgren@gmail.com
## Not run: if (interactive()) { # EXAMPLE1 } ## End(Not run) ## Not run: if (interactive()) { # EXAMPLE1 } ## End(Not run) code_runner <- function() { oa <- bru_log_active(TRUE) on.exit(bru_log_active(oa)) bru_log("Test message") } bru_log_active() code_runner() cat(bru_log_get()) bru_log_active()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.