Skip to content
Back to formatted view

Raw Message

Message-ID: <200510131928.14494.vincent.goulet@act.ulaval.ca>
Date: 2005-10-13T23:28:14Z
From: Vincent Goulet
Subject: shell scripts in R
In-Reply-To: <200510140039.59852.kb2qzv@poczta.wp.pl>

Le 13 Octobre 2005 18:39, Benedict P. Barszcz a ??crit??:
> Dnia pi??tek, 14 pa??dziernika 2005 00:13, Sundar Dorai-Raj napisa??:
> > 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.

In 'system(ls)', 'ls' would be any object, whereas in 'system("ls")', it is a 
string. Specifying "quoted string" would be redundant. (True R wizard can 
correct me if I,m not accurate.)

When I first encountered R's man pages, I thought they were rather sparse 
compared to those of S-Plus. Now I find they are just to the point and so 
much easier to consult!

-- 
  Vincent Goulet, Professeur agr??g??
  ??cole d'actuariat
  Universit?? Laval, Qu??bec 
  Vincent.Goulet at act.ulaval.ca   http://vgoulet.act.ulaval.ca