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
__
2 matches
Mail list logo