R script: have variable paths
We are having errors like the following when running the job from a repository that differs from the main repository:
Error in setwd(dirname("/builds/teams/eco/remote-eco-lab//")) : cannot change working directory
This appears to be because the paths in the R script are hard coded. We need to update the R script so the paths are variable and defined from outside the script itself.