task_stop: Delete or stop a specific task which was scheduled in the...

task_stopR Documentation

Delete or stop a specific task which was scheduled in the Windows task scheduler.

Description

Delete a specific task which was scheduled in the Windows task scheduler.

Usage

task_stop(taskname)

task_delete(taskname)

Arguments

taskname

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

Value

the system call to schtasks /Delete or /End

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")
Sys.sleep(5)
task_stop("myfancyscript")

task_delete(taskname = "myfancyscript")

## End(Not run)

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