[R] shell scripts in R

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Fri Oct 14 00:13:14 CEST 2005



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




More information about the R-help mailing list