[R] Invoking shell commands from within R

Jonathan Myles jonathan.myles at mrc-bsu.cam.ac.uk
Mon Apr 26 15:04:21 CEST 1999


   X-Authentication-Warning: stat.math.ethz.ch: majordom set sender to owner-r-help at stat.math.ethz.ch using -f
   From: fredrigl at math.uio.no (Fredrik Glockner)
   Content-Type: text/plain; charset="iso-8859-1"
   Date: 26 Apr 1999 13:46:53 +0200
   User-Agent: Gnus/5.070083 (Pterodactyl Gnus v0.83) Emacs/20.3
   Sender: owner-r-help at stat.math.ethz.ch
   Precedence: bulk

   In S-Plus, one can invoke a shell command by prepending it with a "!",
   e.g.:

       > !ls

   Is something similar available in R?  Is it possible to execute shell
   commands from within R?

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

system("ls")

Jonathan


-- 
Dr. Jonathan Myles         e-mail:jonathan.myles at mrc-bsu.cam.ac.uk
MRC Biostatistics Unit     Tel. 01223 330371
Institute of Public Health FAX  01223 330388
University Forvie Site
Robinson Way
CAMBRIDGE
CB2 2SR                   
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 mailing list