task_runnow: Immediately run a specific task available in the Windows task...

task_runnowR Documentation

Immediately run a specific task available in the Windows task scheduler.

Description

Immediately run a specific task available in the Windows task scheduler.

Usage

task_runnow(taskname)

Arguments

taskname

the name of the task to run. See the example.

Value

the system call to schtasks /Run

Examples

## Not run: 
myscript <- quote(print(Sys.time()))

task_create(
  taskname = "myfancyscript", rscript = myscript,
  schedule = "ONCE", starttime = format(Sys.time() + 10 * 60, "%H:%M")
)

task_runnow("myfancyscript")

## End(Not run)

rpkgs/curlR documentation built on Jan. 30, 2023, 7:26 p.m.