Warnes, Gregory R
2004-Sep-20 22:06 UTC
[Rd] "Namespace dependencies not required" message
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? -Greg Gregory R. Warnes Manager, Non-Clinical Statistics Pfizer Global Research and Development LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
On Mon, Sep 20, 2004 at 04:05:52PM -0400, Warnes, 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?I had the same problem. I think you must keep the 'Depends' field in DESCRIPTION file. G?ran> > -Greg > > Gregory R. Warnes > Manager, Non-Clinical Statistics > Pfizer Global Research and Development > > > > LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}} > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- 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
Warnes, Gregory R
2004-Sep-21 15:59 UTC
[Rd] "Namespace dependencies not required" message
> -----Original Message----- > From: r-devel-bounces@stat.math.ethz.ch > [mailto:r-devel-bounces@stat.math.ethz.ch]On Behalf Of Martin Maechler > Sent: Tuesday, September 21, 2004 3:03 AM > To: r-devel@stat.math.ethz.ch > Subject: Re: [Rd] "Namespace dependencies not required" message > > > >>>>> "GB" == G?ran Brostr?m <gb@stat.umu.se> > >>>>> on Mon, 20 Sep 2004 22:28:08 +0200 writes: >[...]> 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.For some reason, I got the impression that the import directives in the NAMESPACE file _replaced_ the 'Depends:' line, rather than _augmenting_ it. It seems that G?ran had the same problem. May I suggest two changes: First, a more informative error message would be very helpful. Perhaps replacing "Namespace dependencies not required" which doesn't really state the nature of the problem with "NAMESPACE imports package(s) not listed package dependencies". Second, it would help to add a paragraph noting that all of the packages 'import'ed must also be listed in the package 'Depends:' field to section 1.6 of the R Extensions document. [I would suggest verbage, but I've gotta go to an appointment now..] -Greg LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}