Learn R Programming

cronR (version 0.6.5)

cron_save: Save the current crontab

Description

Save the current crontab

Usage

cron_save(file, overwrite = FALSE, user = "")

Arguments

file

The file location at which you wish to save your crontab.

overwrite

logical; should we overwrite the file at path file if it already exists?

user

The user whose cron jobs we will be saving.

See Also

Examples

Run this code
if (FALSE) {
cron_add(command = cron_rscript(system.file(package = "cronR", "extdata", "helloworld.R")), 
  frequency = 'minutely', id = 'test1', description = 'My process 1')
cron_save(file="crontab_backup", overwrite=TRUE)
cron_clear()
cron_load(file="crontab_backup")
}

Run the code above in your browser using DataLab