[R] shell scripts in R
Greg Snow
greg.snow at ihc.com
Fri Oct 14 19:17:13 CEST 2005
>>>> Marc Schwartz <MSchwartz at 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 at ihc.com
(801) 408-8111
More information about the R-help
mailing list