Skip to content
Prev 309372 / 398506 Next

export variable from bash to R

On Tue, Oct 30, 2012 at 2:03 PM, sophie <melanie.bieli at bluewin.ch> wrote:
It didn't hang, it was probably sitting there waiting for you to say
q() - I was just using it interactively.
Does it produce any printed output? Can you add some print statements
to see where it gets to?

$ cat myscript.R
print("Hello world")
$ Rscript -e 'source("myscript.R")'
[1] "Hello world"

 - here at least I know its finding the right script.

Barry