From: Prof Brian Ripley
On Tue, 14 Sep 2004, Liaw, Andy wrote:
Dear R-devel,
I've noticed that if the method for formula is not exported
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
The same thing happens with randomForest, because
randomForest.formula() was
not exported. Is this the intended behavior of update()?
It is. randomForest.formula should be written to report its
call as to
randomForest. Take a look at e.g. rlm.formula.