get_default_logdir | R Documentation |
log_event()
has a notion of default logdir, so you don't need to specify it
at every call. These functions allow you to query and the current logdir.
get_default_logdir()
set_default_logdir(logdir = "logs")
with_logdir(logdir, code)
local_logdir(logdir, .env = parent.frame())
logdir |
The |
code |
Expressions that will be evaluated in a context with the |
.env |
Environment that controls scope of changes. For expert use only. |
The logdir
for get_default_logdir()
otherwise invisibly returns
NULL
set_default_logdir()
: Modifies the default logdir
.
with_logdir()
: Temporarily modify the default logdir
.
local_logdir()
: Temporarily modify thedefault logdir
.
temp <- tempfile()
get_default_logdir()
with_logdir(temp, {
print(get_default_logdir())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.