Re: [R] run r scripts (tinn) via command

From: camilo_abboud <>
Date: Thu, 28 Apr 2011 14:44:30 -0700 (PDT)

┬┐How to run several commands with one script?

Functions needed: SOURCE (script) + logical functions(if, while, for) + scan(parameter A)

Im not going to put an example, but the thing is:

  1. run the main script, which contains another SOURCE-funtion wich points to an other script. source(source(2nd script))
  2. If you what to be asked to run a secundary script, use function SCAN().
  3. If you what to run secundary code IF something...use the If funtion and so one. if(TRUE){source()}
  4. The scan function also helps to stop code at a certain point, not very elegant but helps.

Hope this helps after 2009.

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 29 Apr 2011 - 01:42:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 01:50:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive