Re: [R] Package renv and Rscript

2020-04-14 Thread Ben Tupper
Hi, Ah, of course - the wrapper would be a shell wrapper not an R wrapper ... ### #!/bin/sh cd /path/to/project Rscript /path/to/script.R /path/to/config_file ### Thanks so much! Ben On Tue, Apr 14, 2020 at 2:13 PM Thierry Onkelinx wrote: > Dear Ben, > > I think that you first need to go to y

Re: [R] Package renv and Rscript

2020-04-14 Thread Thierry Onkelinx via R-help
Dear Ben, I think that you first need to go to your project and then start Rscript from that location. renv() needs to pick up the .Renviron file located at the root of your project. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUU

Re: [R] Package renv and Rscript

2020-04-14 Thread Ben Tupper
Whoops! The silly "send" button jumped out and grabbed my cursor before I was ready for it. Second try... 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 with o

[R] Package renv and Rscript

2020-04-14 Thread Ben Tupper
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 envir