[Rd] Help with issues for update when defining S3 methods for lm

From: Ulrike Groemping <groemping_at_bht-berlin.de>
Date: Mon, 02 Nov 2009 00:38:53 -0800 (PST)

Dear expeRts,

in my package DoE.base, I have defined a generic for lm (lm <- function(formula, ...){UseMethod("lm")}) and functions lm.design and lm.default (lm.default <- stats::lm). The namespace exports "lm", and defines the methods with S3method (e.g. S3method("lm",default)).

This construction causes a problem with update, as e.g. in

swiss.lm <- lm(Fertility~Education+Examination, swiss) upd.swiss.lm <- update(swiss.lm, .~.-Examination)

which works without DoE.base loaded, but not with DoE.base loaded. In the latter case, I get

Error in eval(expr, envir, enclos) : could not find function "lm.default"

I thought I exactly followed the directions in Section 1.6.2 of "Writing R extensions". Any suggestions ?

Regards, Ulrike

-- 
View this message in context: http://old.nabble.com/Help-with-issues-for-update-when-defining-S3-methods-for-lm-tp26156624p26156624.html
Sent from the R devel mailing list archive at Nabble.com.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 02 Nov 2009 - 08:42:12 GMT

This archive was generated by hypermail 2.2.0 : Mon 02 Nov 2009 - 08:50:19 GMT