[R] shell scripts in R
Andrew Robinson
A.Robinson at ms.unimelb.edu.au
Fri Oct 14 00:17:36 CEST 2005
Benedykt,
No, there is no ls object in your workspace. Try this:
system("ls", intern = FALSE, ignore.stderr = TRUE)
Andrew
On Fri, Oct 14, 2005 at 12:04:52AM +0200, Benedykt P. Barszcz wrote:
> Dnia czwartek, 13 pa?dziernika 2005 23:25, Andrew Robinson napisa?:
> > Marco,
> >
> > use the system command.
> >
> > ?system
> >
> > I hope that this helps,
>
> system(ls, intern = FALSE, ignore.stderr = TRUE)
> Error in as.character(args[[i]]) : cannot coerce to vector
>
> In fact it ignores the stderr !
> --
> pozdrawiam,
> Benedykt
>
> Cyfrowy klucz publiczny / Digital public key
> http://agrypa1.atspace.com/klucze/kb2qzv_onet-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