Open log files for a job
open_logs.RdQuickly open job log files in the system editor or viewer.
Examples
# \donttest{
job <- slurm_call(function(x) x^2, x = 2, engine = "local")
# Use a no-op viewer in non-interactive contexts (e.g. checks/CI)
noop_viewer <- function(...) invisible(NULL)
# Open output log
open_logs(job, which = "out", viewer = noop_viewer)
#> Output log not found: ./logs/local-call.out
# Open both logs
open_logs(job, viewer = noop_viewer)
#> Output log not found: ./logs/local-call.out
#> Error log not found: ./logs/local-call.err
# }