cct-datascience / ed2-mandifore

PEcAn.ED2 runs using MANDIFORE site, patch, cohort, and met data
0 stars 1 forks source link

Jobs started with run.sh don't use `renv` #43

Closed Aariq closed 1 year ago

Aariq commented 1 year ago

R CMD BATCH doesn't load .Rprofile, so doesn't use renv and uses different package versions.

Solution: at the top of workflow.R source(".Rprofile"). This doesn't work though, unless you provide an absolute path or setwd(), both of which aren't great solutions. Maybe can do somethuing like setwd(../..)?