bnosac / cronR

A simple R package for managing your cron jobs.
Other
290 stars 38 forks source link

Allow user to specify working directory for RScript? #30

Closed cboettig closed 4 years ago

cboettig commented 4 years ago

the behaviour of RScript can depend on a working directory (e.g. for a .Renviron that may contain credentials needed, etc). Of course we can construct our commands from scratch and add them with cron_add(), but it would be great if cron_rscript() could support an argument of workdir that would add a cd workdir before evaluating Rscript. If this sounds reasonable to you I'd be happy to prepare a PR.

jwijffels commented 4 years ago

Good point. Allows to pass on different environment variables and settings. Feel free to create a PR

jwijffels commented 4 years ago

Thanks. On cran now.