[Rd] how to use update if method for formula is not in namespace?

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 15 Sep 2004 - 03:49:46 EST


Dear R-devel,

I've noticed that if the method for formula is not exported in NAMESPACE, then update() would fail. As an example:

> library(e1071)
> data(iris)
> iris.svm <- svm(Species ~ ., data=iris)
> update(iris.svm)

Error in eval(expr, envir, enclos) : couldn't find function "svm.formula"

The same thing happens with randomForest, because randomForest.formula() was not exported. Is this the intended behavior of update()? What would be the preferred work-around?

Best,
Andy



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed Sep 15 03:53:40 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:17 EST