Displaying 1 result from an estimated 1 matches for "gis_opt_pr".
Did you mean:
gis_opt_pres
2013 Mar 24
0
Rscript does not load/capture all shell arguments
...er isn't really relevant as the grass script is just a bash
script). The R script is evoked with a call to Rscript ($RGRASSSCRIPT is a
shell variable with the file name of the R script, the rest are variables I
want to read into R) :
Rscript --no-save --no-restore $RGRASSSCRIPT $GIS_OPT_INMAP $GIS_OPT_PRES
$GIS_OPT_ENV $GIS_OPT_OUTMAP_GLM $GIS_OPT_FSTATS $GIS_FLAG_M $GIS_OPT_SPP
$GIS_OPT_SPA $GIS_OPT_FAM $GIS_OPT_TERMS $GIS_FLAG_Q $GIS_OPT_OUTMAP_PROJ
$GIS_OPT_ENV_PROJ $GIS_OPT_KFOLD $GIS_OPT_SFOLD
In the R script, I use the commandArgs function to capture the arguments
supplied to Rscript:
args...