vitals supports the VITALS_LOG_DIR environment variable,
which sets a default directory to write logs to in Task's $eval()
and $log() methods.
Value
Both vitals_log_dir() and vitals_log_dir_set() return the current
value of the environment variable VITALS_LOG_DIR. vitals_log_dir_set()
additionally sets it to a new value.
To set this variable in every new R session, you might consider adding it
to your .Rprofile, perhaps with usethis::edit_r_profile().
Examples
vitals_log_dir()
#> [1] "$RUNNER_TEMP"
dir <- tempdir()
vitals_log_dir_set(dir)
vitals_log_dir()
#> [1] "/tmp/Rtmp5386YB"
