[R] Invoking shell commands from within R
ihaka at stat.auckland.ac.nz
Mon Apr 26 23:21:25 CEST 1999
On 26 Apr 1999, Fredrik Glockner wrote:
> In S-Plus, one can invoke a shell command by prepending it with a "!",
> > !ls
> Is something similar available in R? Is it possible to execute shell
> commands from within R?
The code to support this is present in main.c. To compile this in,
place the line
at the top of src/main/main.c.
Using "!" in this way is syntactically ugly and it was a general decision
to not make this a standard R feature (but I left the code in because I
"knew" someone would ask ...).
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help