[R] shell scripts in R

Andrew Robinson A.Robinson at ms.unimelb.edu.au
Fri Oct 14 02:09:56 CEST 2005

First I have to correct myself; there probably is an ls object in your
workspace, but it's a function.

Second I have to suggest you should try to run the example code in the
help file.  Surely this would clarify that the string has to be

t1 <- system("who", TRUE)

I'm not so sure that it's a question of saving bytes as a question of
assuming that people will try reasonable avenues.



On Fri, Oct 14, 2005 at 12:39:59AM +0200, Benedict P. Barszcz wrote:
> 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.
> -- 
> Benedict
> Cyfrowy klucz publiczny / Digital public key 
> http://agrypa1.atspace.com/klucze/kb2qzv_wp.pl-public.asc
> ______________________________________________
> R-help at 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

Andrew Robinson
Senior Lecturer in Statistics                       Tel: +61-3-8344-9763
Department of Mathematics and Statistics            Fax: +61-3-8344-4599
University of Melbourne, VIC 3010 Australia
Email: a.robinson at ms.unimelb.edu.au    Website: http://www.ms.unimelb.edu.au

More information about the R-help mailing list