From maechler at stat.math.ethz.ch  Tue Sep 21 09:03:14 2004
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Tue Sep 21 09:03:16 2004
Subject: [Rd] "Namespace dependencies not required" message
In-Reply-To: <20040920202808.GA24025@stat.umu.se>
References: <D7A3CFD7825BD6119B880002A58F06C20C521C44@groexmb02.pfizer.com>
	<20040920202808.GA24025@stat.umu.se>
Message-ID: <16719.53810.537414.318805@gargle.gargle.HOWL>

>>>>> "GB" == G?ran Brostr?m <gb@stat.umu.se>
>>>>>     on Mon, 20 Sep 2004 22:28:08 +0200 writes:

    GB> On Mon, Sep 20, 2004 at 04:05:52PM -0400, Warnes,
    GB> Gregory R wrote:
    >>  I'm still working to add namespace support to some of my
    >> packages. I've removed the 'Depends' line from the
    >> DESCRIPTION file, and created an appropriate NAMESPACE
    >> files.
    >> 
    >> Strangely, whenever I use 'importFrom(package, function)'
    >> R CMD check generates "Namespace dependencies not
    >> required" warnings .  Without the import statements, the
    >> warning does not occur, but the code tests fail with the
    >> expected object not found errors.
    >> 
    >> This occurs with both R 1.9.1 and R 2.0.0.
    >> 
    >> So, should are these errors just bogus and I just ignore
    >> these errors, or is there something I've done wrong with
    >> the NAMESPACE or elsewhere?

    GB> I had the same problem. I think you must keep the
    GB> 'Depends' field in DESCRIPTION file.

yes, definitely.

And since you are (rightly, thank you!) working with 2.0.0-beta,
please consider
   http://developer.r-project.org/200update.txt

which mentions more things on 'Depends:', 'Suggests:' etc.
Also, don't forget to use 'Writing R Extensions' of 2.0.0.

Martin


[Rd] "Namespace dependencies not required" message
Martin Maechler