Skip to content
Prev 2474 / 398503 Next

Invoking shell commands from within R

FG> In S-Plus, one can invoke a shell command by prepending it with a "!",
FG> e.g.:
FG> Is something similar available in R?  Is it possible to execute shell
FG> commands from within R?

Yes, use the system() command, see help(system)

.f
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._