Learn R Programming

cronR (version 0.6.5)

cron_clear: Clear all cron jobs

Description

Clear all cron jobs

Usage

cron_clear(ask = TRUE, user = "")

Arguments

ask

Boolean; ask before removal?

user

The user whose crontab we are clearing.

Examples

Run this code
if(interactive())
{

f   <- system.file(package = "cronR", "extdata", "helloworld.R")
cmd <- cron_rscript(f)
cron_add(command = cmd, frequency = 'minutely', id = 'test1', description = 'My process 1')
cron_add(command = cmd, frequency = 'daily', at="7AM", id = 'test2', description = 'My process 2')
cron_njobs()

cron_ls()
cron_clear(ask=TRUE)
cron_ls()
# \dontshow{
}
# }

Run the code above in your browser using DataLab