[R] shell scripts in R
Marc Schwartz (via MN)
mschwartz at mn.rr.com
Fri Oct 14 00:14:03 CEST 2005
On Fri, 2005-10-14 at 00:04 +0200, Benedykt P. Barszcz wrote:
> Dnia czwartek, 13 października 2005 23:25, Andrew Robinson napisaÅ:
> > Marco,
> >
> > use the system command.
> >
> > ?system
> >
> > I hope that this helps,
>
> system(ls, intern = FALSE, ignore.stderr = TRUE)
> Error in as.character(args[[i]]) : cannot coerce to vector
>
> In fact it ignores the stderr !
As per ?system:
command the system command to be invoked, as a string.
Thus,
system("ls", intern = FALSE, ignore.stderr = TRUE)
HTH,
Marc Schwartz
More information about the R-help
mailing list