>>>>> "GB" == G?ran Brostr?m <gb@stat.umu.se>
>>>>> on Sun, 19 Sep 2004 18:51:49 +0200 writes:
GB> Now I try to add some C and Fortan code to my package, so the
NAMESPACE
GB> file is
GB> useDynLib(eha)
GB> importFrom(survival, Surv)
GB> export(mlreg.fit, risksets)
GB> but I get
GB> .....
GB> * checking R files for library.dynam ... OK
GB> * checking S3 generic/method consistency ... WARNING
GB> Error in .try_quietly({ : Error in library(package, lib.loc =
lib.loc, character.only = TRUE, verbose = FALSE) :
GB> package/namespace load failed for 'eha'
GB> Execution halted
GB> See section 'Generic functions and methods' of the
'Writing R Extensions'
GB> manual.
GB> .....
GB> I've checked that section, but I am not adding methods to
generics,
sure?
Aren't you trying to export mlreg.fit
which looks like a 'fit' S3 method for the 'mlreg' generic?
In that case you need to add
S3method(mlreg, fit)
to the NAMESPACE file.
GB> I'm not writing new generic functions.
GB> If I remove useDynLib(eha), I get no errors or warnings, except that
the
GB> example in mlreg.fit.Rd doesn't work (of course).
GB> So what's wrong?
(see above)?
Regards,
Martin
Martin Maechler <maechler@stat.math.ethz.ch>
http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><