[R] Package renv and Rscript
Ben Tupper
btupper @end|ng |rom b|ge|ow@org
Tue Apr 14 19:41:26 CEST 2020
Hi,
I am using renv (https://rstudio.github.io/renv/) to maintain a project
environment in a directory (ala /path/to/project)
Within the project I have a number of scripts that I call using...
$ Rscript /path/to/script.R /path/to/config_file
I can kick this off successfully with the renv environment when I manually
start Rscript within the project directory. Now I would like to be able to
hand the script kick off to either crontab or the PBS queueing system.
At first I thought I would actually call a wrapper script such that
accepted two arguments '/path/to/script.R' and '/path/to/config_file'. I
planned to use
renv::run('/path/to/script.R',
--
Ben Tupper
Bigelow Laboratory for Ocean Science
East Boothbay, Maine
http://www.bigelow.org/
https://eco.bigelow.org
[[alternative HTML version deleted]]
More information about the R-help
mailing list