Skip to content

export variable from bash to R

2 messages · Barry Rowlingson, sophie

#
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