Message-ID: <D7A3CFD7825BD6119B880002A58F06C20C521C1C@groexmb02.pfizer.com>
Date: 2004-09-16T22:25:41Z
From: Warnes, Gregory R
Subject: Proper way to export S3 method when base is not in a namespace
What is the proper method of exporting an S3 method from a package with a
NAMESPACE when the base method is from a package which does not have a
namespace?
EG, The Design library defines 'contrast', 'contrast.ols', .. and I've
written 'contrast.lm' which I want to include in a private package. If I
put
S3method(contrast, lm)
in the NAMESPACE file, R CMD check fails with
Error in .tryQuietly({ : Error in library(package, lib.loc = lib.loc,
character.only = TRUE, verbose = FALSE) :
package/namespace load failed
Execution halted
For the moment, I've simply put contrast.lm in the exports, but I would like
to know what the proper procedure is.
Gregory R. Warnes
Manager, Non-Clinical Statistics
Pfizer Global Research and Development
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}