| survey_log | R Documentation |
If users decide to pipe the results of main() or any of the
logging-related functions into a log file, the contents of log file
can be parsed and stored in a tibble using survey_log(). Only
the messages from the log_*() functions will be parsed, all other output
from the code will be ignored.
survey_log(log_path)
log_path |
Path to the log file |
A tibble of the contents of the log file
Other survey:
survey_strata(),
survey_tomls()
Other log:
log_error(),
log_message(),
log_total_time()
tmp <- fs::dir_create(fs::file_temp())
log <- fs::file_create(fs::path(tmp, "main.log"))
fake_log_message <- log_message("example message")
cat(fake_log_message, file = log)
survey_log(log)
fs::dir_delete(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.