[R] RE: [S] tree function in R language

Liaw, Andy andy_liaw at merck.com
Thu Jul 29 06:08:36 CEST 2004


1. Could it be that your computer is behind a firewall?  If so, try reading
the R for Windows FAQ.

2. Please ask R-related question on R-help instead of S-news.

Andy

> From: cheng wu 
> 
> Hi, Andy
> 
> Thank you for your answer.  
> 
> Why I can't load CRAN packages?
> 
> the error message is: 
> 
> > {a <- CRAN.packages()
> + install.packages(select.list(a[,1],,TRUE), .libPaths()[1], 
> available=a)}
> trying URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
> unable to connect to 'cran.r-project.org'.
> Error in download.file(url = paste(contriburl, "PACKAGES", 
> sep = "/"),  : 
>         cannot open URL 
> `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
> 
> 
> 
> >From: "Chushu Gu" <chushugu at hotmail.com>
> >To: "cheng wu" <wu_cheng2001 at hotmail.com>
> >Subject: Fw: [S] tree function in R language
> >Date: Wed, 28 Jul 2004 09:14:48 -0400
> >
> >
> >----- Original Message -----
> >From: "Liaw, Andy" <andy_liaw at merck.com>
> >To: "'chushu Gu'" <chushugu at hotmail.com>; 
> <s-news at lists.biostat.wustl.edu>
> >Sent: Tuesday, July 27, 2004 11:22 PM
> >Subject: RE: [S] tree function in R language
> >
> >
> > > Have you read the (latest edition of the) book for which 
> the package 
> you
> >are
> > > using supports?  There are differences in S-PLUS and R 
> (and the 4th
> >edition
> > > of MASS supports both, thus ought to tell you this particular 
> difference
> > > between the two).  tree() in S-PLUS is written originally 
> by Clark and
> > > Pregibon.  If you want that functionality in R, you need 
> to load the
> >`tree'
> > > package (available on CRAN), which is an independent 
> implementation by 
> one
> > > of the co-authors of MASS.
> > >
> > > Another hint: Look in the `scripts' subdirectory of where 
> the `MASS'
> >package
> > > is installed.
> > >
> > > Andy
> > >
> > > > From: chushu Gu
> > > >
> > > > Hi all,
> > > >
> > > > I am using R 1.8.1, I have the following code,
> > > >
> > > > library(MASS)
> > > > data(iris)
> > > > ir.tr <- tree(Species ~., iris)
> > > > ir.tr
> > > > summary(ir.tr)
> > > >
> > > >
> > > > I got the following message:
> > > >
> > > > Error: couldn't find function "tree"
> > > >
> > > > I don't the reason, as I already load the library "MASS".
> > > >
> > > > Could anyone tell me the possible reasons?
> > > >
> > > > Thanks,
> > > >
> > > > Chushu Gu
> > > >
> > > > 
> _________________________________________________________________
> > > > 
> --------------------------------------------------------------------
> > > > This message was distributed by 
> s-news at lists.biostat.wustl.edu.  To
> > > > unsubscribe send e-mail to 
> s-news-request at lists.biostat.wustl.edu 
> with

> > > >
> > > >
> > >
> > >
> > > 
> --------------------------------------------------------------
> ------------
> >----
> > > Notice:  This e-mail message, together with any 
> attachments, contains
> >information of Merck & Co., Inc. (One Merck Drive, 
> Whitehouse Station, New
> >Jersey, USA 08889), and/or its affiliates (which may be 
> known outside the
> >United States as Merck Frosst, Merck Sharp & Dohme or MSD 
> and in Japan, as
> >Banyu) that may be confidential, proprietary copyrighted 
> and/or legally
> >privileged. It is intended solely for the use of the 
> individual or entity
> >named on this message.  If you are not the intended 
> recipient, and have
> >received this message in error, please notify us immediately 
> by reply 
> e-mail
> >and then delete it from your system.
> > > 
> --------------------------------------------------------------
> ------------
> >----
> > >
> 
> 
> 
>




More information about the R-help mailing list