valkremk at gmail.com
Fri Nov 25 05:50:29 CET 2016
I am trying to get shell variable(s) into my R script in Linux . How
do I get them?
my shell script is
Name=Alex; export Name
Age=25; export Age
How do get the Name and Age variables in my R script?
My R script is
print " Your Name is $Name and you are $Age years old"
My another shell script that call the R script is
So by running this script ./test.sh
I want get: Your Name is Alex and you are 25 years old
I can define those variables in R but that is not my intention.
Thank you in advance
More information about the R-help