Displaying 1 result from an estimated 1 matches for "my_r_file".
Did you mean:
my_c_file
2009 Apr 22
2
Returning Variables in R to Linux Shell
...of the variable in my R script to
the linux environment without writing it to a file in my R script and
then reading the file through cat?
For example, if I had a simple one line R script that just did
string <- 'TEST',
when I call
/usr/local/bin/R -no-save < MY_R_FILE,
how can I put the value TEST into a shell variable?
Thanks,
Andrew Bierbryer
[[alternative HTML version deleted]]