Skip to content
Prev 24891 / 63424 Next

Imports/exports of S4 methods

I'm wrestling with the same issues, so this is the blind leading the 
blind,  but that usually prompts someone knowledgeable to say something 
useful.
Roger D. Peng wrote:

            
I thought it should only be necessary to import A in NAMESPACE and list 
it in Imports in the DESCRPTION file,  but I get warning messages if the 
code in B does not require("A") in the .onLoad function.  This in turn 
means that A needs to be in the Depends line of DESCRIPTION.
I don't think you need the imports in this case, just the the export. 
You do need B (and thus implicitly A) in the Depends line of DESCRIPTION.
I'm not sure why, but the one problem I have had is that when the syntax 
of the NAMESPACE file is messed up, you only get warnings when to 
require the package, but then you get errors when you try to use the 
functions.  Be sure to look back and see if you got warnings when you 
require("B").
Thanks, you just saved me writing up the same questions.
====================================================================================

La version fran?aise suit le texte anglais.

------------------------------------------------------------------------------------

This email may contain privileged and/or confidential inform...{{dropped}}