To be able to run species models on the Sigma2 server we need to be able to submit the speciesModelRuns script as part of a shell script. The necessary arguments (model run type and date accessed) need to be inputtable as arguments.
What changes have been made?
pipeline/models/speciesModelRuns.R - the section at the start of this script means that the script can now be run using a bash script (see code example below) AND by sourcing it from other R scripts
Why have changes been made?
To be able to run species models on the Sigma2 server we need to be able to submit the speciesModelRuns script as part of a shell script. The necessary arguments (model run type and date accessed) need to be inputtable as arguments.
What changes have been made?
Rscript filePath/speciesModelRuns.R 2024-02-08 allSpecies