Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


cronR (version 0.4.2)

cron_rm: Remove a cronjob

Description

Use this command to remove a cron job added by cron_add.

Usage

cron_rm(id, dry_run = FALSE, user = "")

Arguments

id

A set of ids, partially matched from the beginning, we wish to remove. We only remove the id if it is uniquely matched in the file.

dry_run

Boolean; if TRUE we do not submit the cron job; instead we return the parsed text that would be submitted as a cron job.

user

The user whose crontab we will be modifying.

Examples

Run this code
# NOT RUN {
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_njobs()
cron_ls()
cron_rm(id = "test1")
cron_njobs()
cron_ls()
# }

Run the code above in your browser using DataLab