From gb at stat.umu.se  Sun Sep 19 18:51:49 2004
From: gb at stat.umu.se (gb)
Date: Sun Sep 19 18:51:54 2004
Subject: [Rd] Namespace problem
Message-ID: <20040919165149.GA7954@stat.umu.se>

Now I try to add some C and Fortan code to my package, so the NAMESPACE
file is

useDynLib(eha)
importFrom(survival, Surv)
export(mlreg.fit, risksets)

but I get 

.....
* checking R files for library.dynam ... OK
* checking S3 generic/method consistency ... WARNING
Error in .try_quietly({ : Error in library(package, lib.loc = lib.loc, character.only = TRUE, verbose = FALSE) :
        package/namespace load failed for 'eha'
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensions'
manual.
.....

I've checked that section, but I am not adding methods to generics, I'm not
writing new generic functions.

If I remove useDynLib(eha), I get no errors or warnings, except that the
example in mlreg.fit.Rd doesn't work (of course).

So what's wrong?
 
G?ran
-- 
 G?ran Brostr?m                    tel: +46 90 786 5223
 Department of Statistics          fax: +46 90 786 6614
 Ume? University                   http://www.stat.umu.se/egna/gb/
 SE-90187 Ume?, Sweden             e-mail: gb@stat.umu.se


[Rd] Namespace problem
gb