[Rd] Re: NAMESPACE Warning

From: gb <gb_at_stat.umu.se>
Date: Mon 20 Sep 2004 - 02:03:35 EST

On Sun, Sep 19, 2004 at 05:57:41PM +0200, wrote:
> I'm trying to learn how to use namespaces, so I have created a small
> package with two functions. My NAMESPACE file is
>
> importFrom(survival, Surv)
> export(mlreg.fit, risksets)
>
> because 'mlreg.fit' uses 'Surv' from 'survival'. However I get
>
> * checking package dependencies ... WARNING
> Namespace dependencies not required:
> survival
>
> Why? (If I remove 'importFrom' I get the expected Error message.)

I added 'survival' to 'Depends:' in 'DESCRIPTION' and the warning disappeared.

> Göran



R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Oct 21 20:33:39 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:23 EST