Re: [Rd] Namespace problem

From: Martin Maechler <>
Date: Mon 20 Sep 2004 - 18:43:44 EST

>>>>> "GB" == Göran Broström <>
>>>>> 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(, 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,

Aren't you trying to export

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 doesn't work (of course).

    GB> So what's wrong?  

(see above)?


Martin 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			<><

______________________________________________ mailing list Received on Mon Sep 20 18:49:57 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:00:21 EST