Ista,
Thanks for this method, it works! Unfortunately 'R' still spits
everything out to std out, but the variable as you describe below grabs only
the final output variable, similar to how functions or scripts work
internally within 'R'. Thanks!
Kjetil,
Thanks also for your input, but
Hey everyone,
I know that I can call 'R' from other scripts, and that I can make
command calls from 'R' (e.g., using system() ). But how can I get 'R' to
RETURN values to the script that called it. E.g., I would like to be able
to do something like the following (as a simpler example) from
Hi Mike,
Is this what you want?
#!/bin/bash
myTest=$(Rscript testing.R.r)
echo myTest contains
echo $myTest
Note that testing.R.r will have to cat() or print() myResult (e.g, my
testing.R.r contains
myResult - paste(Hello World)
cat(myResult)
Best,
Ista
On Fri, Dec 3, 2010 at 1:23 PM, Mike
see below.
On Fri, Dec 3, 2010 at 3:23 PM, Mike Williamson this.is@gmail.com wrote:
Hey everyone,
I know that I can call 'R' from other scripts, and that I can make
command calls from 'R' (e.g., using system() ). But how can I get 'R' to
RETURN values to the script that called it.
4 matches
Mail list logo