From ripley at stats.ox.ac.uk  Thu Oct 16 18:08:31 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 16 Oct 2008 17:08:31 +0100 (BST)
Subject: [Rd] packages in Depends field and NAMESPACES
In-Reply-To: <20081016163430.bud1wdul1c0osk8w@imp.inserm.fr>
References: <20081016163430.bud1wdul1c0osk8w@imp.inserm.fr>
Message-ID: <alpine.LFD.2.00.0810161705560.20637@gannet.stats.ox.ac.uk>

On Thu, 16 Oct 2008, Kenneth Knoblauch wrote:

> Must packages in the Depends field of the DESCRIPTION file have
> NAMESPACES?  I haven't seen this explicitly indicated anywhere.

No such requirememt.

>
> I am writing a small package and find that when I add the abind
> package to the list of the Depends field, I get an error in
> R CMD check of the build.
>
> * checking package name space information ... OK
> * checking package dependencies ... ERROR
> Packages required but not available:
> abind

I expect it is in a non-default library tree. From 'Writing R Extensions'

     Note: R CMD check and R CMD build run R with --vanilla, so none of the
     user's startup files are read. If you need R_LIBS set (to find
     packages in a non-standard library) you will need to set it in the
     environment.



> See the information on DESCRIPTION files in the chapter 'Creating R
> packages' of the 'Writing R Extensions' manual.
>
> The abind package is installed, my package installs, builds and loads
> correctly and, in general, works, even the function that uses abind.
> I haven't been able to spot an error from reading the 'Writing R Extensions' 
> manual, yet.  About the only thing that I have noticed that is different
> in this package from the others in the Depends list is that it doesn't
> have a NAMESPACE.
>
> Here is my sessionInfo:
>
> R version 2.7.2 Patched (2008-09-02 r46491)
> i386-apple-darwin8.11.1
>
> locale:
> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods
> [8] base
>
> other attached packages:
> [1] CorticalGraph_0.1-2  abind_1.1-0          geometry_0.1-4
> [4] rgl_0.81             scatterplot3d_0.3-27 gridBase_0.4-3
>
> loaded via a namespace (and not attached):
> [1] tools_2.7.2
>
> Any suggestions would be appreciated.  Thank you.
>
> Ken
>
> -- 
> Ken Knoblauch
> Inserm U846
> Institut Cellule Souche et Cerveau
> D?partement Neurosciences Int?gratives
> 18 avenue du Doyen L?pine
> 69500 Bron
> France
> tel: +33 (0)4 72 91 34 77
> fax: +33 (0)4 72 91 34 61
> portable: +33 (0)6 84 10 64 10
> http://www.sbri.fr
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] packages in Depends field and NAMESPACES
Prof Brian Ripley