Skip to content
Back to formatted view

Raw Message

Message-ID: <14116.25685.292016.650277@galadriel.ci.tuwien.ac.at>
Date: 1999-04-26T13:04:21Z
From: Friedrich Leisch
Subject: Invoking shell commands from within R
In-Reply-To: <m3zp3vsixe.fsf@sade.uio.no>

>>>>> On 26 Apr 1999 13:46:53 +0200,
>>>>> Fredrik Glockner (FG) wrote:

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

>> !ls

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