bnosac / taskscheduleR

Schedule R scripts/processes with the Windows task scheduler.
330 stars 72 forks source link

Argument Access Isssue #80

Closed Kaushikbharat closed 3 years ago

Kaushikbharat commented 3 years ago

Unable to access the arguments passed to rscript_args inside the taskscheduleR_create function in the script which needs to be scheduled.

jwijffels commented 3 years ago

Why not?

Kaushikbharat commented 3 years ago

I tried accessing it as rscript_args[1] rscript_args[2] in my scheduled rscript, but it always halts the execution, it seems I am doing something wrong.

jwijffels commented 3 years ago

Look at the example script. It shows that https://github.com/bnosac/taskscheduleR/blob/master/inst/extdata/helloworld.R

Kaushikbharat commented 3 years ago

Got it, Thanks for the very quick response.