make_crontab: create a crontab job from an rscript

View source: R/cron_helpers.R

make_crontabR Documentation

create a crontab job from an rscript

Description

use the 'cronR' package to create a crontab job with one function

Usage

make_crontab(.script, .frequency, .at = NULL)

Arguments

.script

the path to the script to made into a crontab job

.frequency

frequency at which to run, i.e. "daily" or "weekly" or "minutely"

.at

the sub-frequency at which to run, i.e. for .frequency = "daily", .at could be "8AM"

Value

a console printout of the crontab that was added for the current user

Examples

## Not run: 
make_crontab("user/my_folder/my_script.R", .frequency = "daily", .at = "8AM")

## End(Not run)

tknoch8/helpRs documentation built on May 11, 2022, 9:34 p.m.