vcr_configure_log | R Documentation |
By default, logging is disabled, but you can easily enable for the
entire session with vcr_configure_log()
or for just one test with
local_vcr_configure_log()
.
vcr_configure_log(
log = TRUE,
file = stderr(),
include_date = NULL,
log_prefix = "Cassette"
)
local_vcr_configure_log(
log = TRUE,
file = stderr(),
include_date = NULL,
log_prefix = "Cassette",
frame = parent.frame()
)
log |
Should we log important vcr things? |
file |
A path or connection to log to |
include_date |
(boolean) Include date and time in each log entry. |
log_prefix |
"Cassette". We insert the cassette name after this prefix, followed by the rest of the message. |
frame |
Attach exit handlers to this environment. Typically, this
should be either the current environment or a parent frame (accessed
through |
# The default logs to stderr()
vcr_configure_log()
# But you might want to log to a file
vcr_configure_log(file = file.path(tempdir(), "vcr.log"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.