On Tue, Oct 30, 2012 at 4:34 PM, sophie <melanie.bi...@bluewin.ch> wrote:
> Hi Barry,
>
> I already tried adding print commands, but even if I put the print command
> right under "myscript <- function()", there is no printed output in the
> shell...

 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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to