From gb at stat.umu.se  Sun Sep 19 18:03:35 2004
From: gb at stat.umu.se (gb)
Date: Sun Sep 19 18:03:37 2004
Subject: [Rd] Re: NAMESPACE Warning
In-Reply-To: <20040919155741.GA7765@stat.umu.se>
References: <20040919155741.GA7765@stat.umu.se>
Message-ID: <20040919160335.GB7765@stat.umu.se>

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


[Rd] Re: NAMESPACE Warning
gb