On Tue, 30 Jun 2009, Erin Hodgess wrote:
Dear R People:
Does the system function return a code, (maybe zero if ok, non-zero
otherwise), please?
Let's see
a<-system("ls")
str(a)
int 0
a<-system("ls foo")
ls: foo: No such file or directory
str(a)
int 256
Sure looks like it. And the h
Erin Hodgess wrote:
Dear R People:
Does the system function return a code, (maybe zero if ok, non-zero
otherwise), please?
Dear Erin,
it depends on its arguments and the OS. See the "value" section of ?system.
Best,
Uwe
Thanks,
Erin
__
You don't want shQuote - that makes it a single argument.
Shells strip quotes, but system() does not use a shell on Windows -- you
could use shell() not system(), but that would be overkill here.
On Thu, 24 Apr 2008, Jeff Breiwick wrote:
> Hi,
>
> I am trying to run the command: R CMD INSTALL -
3 matches
Mail list logo