Re: [R] shell scripts in R

From: Andrew Robinson <A.Robinson_at_ms.unimelb.edu.au>
Date: Fri 14 Oct 2005 - 08:17:36 EST


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@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

______________________________________________
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 08:36:03 2005

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