Skip to content
Prev 309389 / 398506 Next

export variable from bash to R

On Tue, Oct 30, 2012 at 4:34 PM, sophie <melanie.bieli at bluewin.ch> wrote:
If your script is just:

 myscript <- function(){
   # some stuff
 }

Then all it is doing is defining a function. It won't actually call
the function unless you call it with something like:

 myscript()

after you've defined it.

Or you could just not bother wrapping the code in a function at all.

Barry