Skip to content

export variable from bash to R

2 messages · Barry Rowlingson, sophie

#
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