Re: [R] shell scripts in R

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Fri 14 Oct 2005 - 08:13:14 EST

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 !

Don't you mean system("ls")? See ?system.

Arguments:

command: the system command to be invoked, as a string.

--sundar



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Oct 14 08:33:19 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:44 EST