Re: [R] system function question

2009-06-30 Thread Thomas Lumley
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

Re: [R] system function question

2009-06-30 Thread Uwe Ligges
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 __

Re: [R] system() function

2008-04-24 Thread Prof Brian Ripley
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 -