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 __