f <- system.file(package = "cronR", "extdata", "helloworld.R")
cron_rscript(f)
cron_rscript(f, rscript_args = "more arguments passed on to the call")
cron_rscript(f, rscript_args = c("more", "arguments", "passed", "on", "to", "the", "call"))
cron_rscript(f, log_append = FALSE)
cron_rscript(f, log_append = TRUE)
cron_rscript(f, log_append = FALSE, log_timestamp = TRUE)
## run from home directory
cron_rscript(f, workdir = normalizePath("~"))
## other non-default options for type
cron_rscript(f, type = "output_on_error")
cron_rscript(f, type = "output_always")
Run the code above in your browser using DataLab