Re: [R] shell scripts in R

From: Greg Snow <greg.snow_at_ihc.com>
Date: Sat 15 Oct 2005 - 03:17:13 EST


>>>> Marc Schwartz <MSchwartz@mn.rr.com> 10/13/05 06:07PM >>>
>On Fri, 2005-10-14 at 00:39 +0200, Benedict P. Barszcz wrote:
>> Dnia piatek, 14 pazdziernika 2005 00:13, Sundar Dorai-Raj napisal:
>>
>> > Don't you mean system("ls")? See ?system.
>> >
>> > Arguments:
>> >
>> > command: the system command to be invoked, as a string.
>>
>> This is the kind of obstacles a newbie has to overcome. Whoeve is
writing the
>> documentation for R, please do not attempt to save on bytes. Life
would be so
>> much more pleasureable.... if only it would say "as a quoted
string". Jee.
>
>The phrase "quoted string" in my mind is redundant.

It is also inaccurate, after all you could do the following:

> tmp <- paste(letters[ c(12,19)], collapse='')
> system(tmp,show=T)

here tmp is a string and works, but quoting it would break things.

Greg Snow, Ph.D.
Statistical Data Center, LDS Hospital
Intermountain Health Care
greg.snow@ihc.com
(801) 408-8111



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 Sat Oct 15 03:30:45 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:54:21 EST