[R] R 1.9.0 and pred.rpart

Liaw, Andy andy_liaw at merck.com
Fri May 14 00:56:36 CEST 2004


Is it possible that you somehow have a copy of predict.rpart in your global
environment, that is overriding the one in the package?

Andy

[ps: R-1.7.3?  Where did you find such a version?]

> From: Giles Hooker
> 
> I installed from the CRAN website:
> 
> install.packages(rpart)
> 
> and also checked
> 
> old.packages()
> 
> which returned NULL.
> 
> More clues?
> 
> Giles Hooker
> 
> 
> > Giles Hooker wrote:
> > > I have just upgraded from R 1.7.3 to R 1.9.0 and have 
> found that the
> > > predict function no longer works for rpart:
> > >
> > >
> > >>predict(hmmm,sim3[1:10,])
> > >
> > > Error in predict.rpart(hmmm, sim3[1:10, ]) :
> > > 	couldn't find function "pred.rpart"
> > >
> > > I have re-installed the rpart package to no avail. Any ideas?
> >
> > You need to (re-)install a recent version of rpart (that 
> might be the
> > case for other contributed packages as well!).
> >
> > Uwe Ligges
> >
> >
> > > Giles Hooker
> > >
> > > ______________________________________________
> > > R-help at 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
> >
> >
> 
> 
> ______________________________________________
> R-help at 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
> 
>




More information about the R-help mailing list