View source: R/utils-eyelogger.R
| eyelogger | R Documentation |
eyeris commands with automatic logging of R console's stdout and stderrThis utility function evaluates eyeris commands while automatically
capturing and recording both standard output (stdout) and standard error
(stderr) to timestamped log files in your desired log directory.
eyelogger(
eyeris_cmd,
log_dir = file.path(tempdir(), "eyeris_logs"),
timestamp_format = "%Y%m%d_%H%M%S"
)
eyeris_cmd |
An |
log_dir |
Character path to the desired log directory. Is set to the
temporary directory given by |
timestamp_format |
Format string passed to |
Each run produces two log files:
<timestamp>.out: records all console output
<timestamp>.err: records all warnings and errors
The result of the evaluated eyeris command (invisibly)
eyelogger({
message("eyeris `glassbox()` completed successfully.")
warning("eyeris `glassbox()` completed with warnings.")
print("some eyeris-related information.")
})
eyelogger({
glassbox(eyelink_asc_demo_dataset(), interactive_preview = FALSE)
}, log_dir = file.path(tempdir(), "eyeris_logs"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.