Possible alternative:
param <- as.numeric(Sys.getenv("MYVALUE"))
The run a shell script around it it calling it:
for v in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do
MYVALUE=v Rscript myRfile.R
done
Oct 15, 2021 · 3:18 PM UTC
1
5

