bnosac / taskscheduleR

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

added exec_path argument to allow cmd directory to be changed prior t… #102

Closed viswambaran closed 1 year ago

viswambaran commented 1 year ago

resolves issue #101 where scripts that source other files using relative referencing can't be found. This change allows users to specific the working directory that command line should be used if necessary.

jwijffels commented 1 year ago

Thanks. Looks ok, can you only change paste0 with paste. paste0 is new since R version 4.0.1, but there is no need to need to upgrade R to something later because of this change. Thanks.

jwijffels commented 1 year ago

Thanks for the change. I´m wondering if this will work if there is a space in the exec_path?

viswambaran commented 1 year ago

Thanks for the change. I´m wondering if this will work if there is a space in the exec_path?

I've just tested this on two different machines to be sure and it ran fine on both when the folder named "new folder" was included in the exec_path.

jwijffels commented 1 year ago

Thanks for executing the tests