taskscheduler_stop: Stop the run of a specific task which is running in the...

View source: R/taskscheduleR.R

taskscheduler_stopR Documentation

Stop the run of a specific task which is running in the Windows task scheduler.

Description

Stop the run of a specific task which is running in the Windows task scheduler.

Usage

taskscheduler_stop(taskname)

Arguments

taskname

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

Value

the system call to schtasks /End

Examples

## Not run: 
myscript <- system.file("extdata", "helloworld.R", package = "taskscheduleR")
taskscheduler_create(taskname = "myfancyscript", rscript = myscript, 
 schedule = "ONCE", starttime = format(Sys.time() + 10*60, "%H:%M"))

taskscheduler_runnow("myfancyscript")
Sys.sleep(5)
taskscheduler_stop("myfancyscript")


taskscheduler_delete(taskname = "myfancyscript")

## End(Not run)

bnosac/taskscheduleR documentation built on March 18, 2024, 8:37 a.m.