Re: [R] shell scripts in R

From: Vincent Goulet <vincent.goulet_at_act.ulaval.ca>
Date: Fri 14 Oct 2005 - 09:28:14 EST

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

______________________________________________
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 09:34:38 2005

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