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

From: Marc Schwartz <MSchwartz_at_MedAnalytics.com>
Date: Thu 29 Jul 2004 - 14:44:08 EST

Shouldn't the URL be (for R 1.8.1 on Windows):

http://cran.r-project.org/bin/windows/contrib/1.8/PACKAGES

There is no URL as listed below, which is presumably why the error message.

Was options()$CRAN changed improperly or is there some other Windows specific issue that is escaping me at the moment?

BTW, you should upgrade to R 1.9.1, as you are two versions behind at this point.

HTH, Marc Schwartz

On Wed, 2004-07-28 at 23:08, Liaw, Andy wrote:
> 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@hotmail.com>
> > >To: "cheng wu" <wu_cheng2001@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@merck.com>
> > >To: "'chushu Gu'" <chushugu@hotmail.com>;
> > <s-news@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



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 29 16:17:51 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:41:14 EST