
Run eyeris
commands with automatic logging of R console's stdout and stderr
Source: R/utils-eyelogger.R
eyelogger.Rd
This 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.
Details
Each run produces two log files:
<timestamp>.out
: records all console output<timestamp>.err
: records all warnings and errors
Examples
eyelogger({
message("eyeris `glassbox()` completed successfully.")
warning("eyeris `glassbox()` completed with warnings.")
print("some eyeris-related information.")
})
#> eyeris `glassbox()` completed successfully.
#> Warning: eyeris `glassbox()` completed with warnings.
eyelogger({
glassbox(eyelink_asc_demo_dataset(), interactive_preview = FALSE)
}, log_dir = file.path(tempdir(), "eyeris_logs"))
#> ✔ [ OK ] - Running eyeris::load_asc()
#> ✔ [ OK ] - Running eyeris::deblink()
#> ✔ [ OK ] - Running eyeris::detransient()
#> ✔ [ OK ] - Running eyeris::interpolate()
#> ✔ [ OK ] - Running eyeris::lpfilt()
#> ! [ SKIP ] - Skipping eyeris::detrend()
#> ✔ [ OK ] - Running eyeris::zscore()