From ripley at stats.ox.ac.uk  Fri Apr 29 11:29:36 2011
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 29 Apr 2011 10:29:36 +0100 (BST)
Subject: [Rd] R CMD check and Suggests Packages
In-Reply-To: <20110429120016.BLP71069@gimr.garvan.unsw.edu.au>
References: <20110429120016.BLP71069@gimr.garvan.unsw.edu.au>
Message-ID: <alpine.LFD.2.02.1104291026210.21146@gannet.stats.ox.ac.uk>

On Fri, 29 Apr 2011, Dario Strbenac wrote:

> Hello,
>
> In my description file, I have an example data package in Suggests: 
> that I've deleted from my library to test what the user who doesn't 
> have it will experience.
>
> However, R CMD check won't even pass my package :
>
> * checking package dependencies ... ERROR
> Package required but not available: RepitoolsExamples
>
> Why would it have to be installed, if it's only a data package, that 
> isn't needed in any of my code ? The manual also says "In 
> particular, large packages providing ?only? data for examples or 
> vignettes should be listed in ?Suggests? rather than ?Depends? in 
> order to make lean installations possible."

Why suggest a package that 'isn't needed in any of my code'?

I suspect that is a lie, and some of your code does use it: if some it 
is needed to fully check the package.   There is a option to 'R CMD 
check' to enable the check to go ahead without all the dependencies, 
so please do re-read the manuals to find it.


> --------------------------------------
> Dario Strbenac
> Research Assistant
> Cancer Epigenetics
> Garvan Institute of Medical Research
> Darlinghurst NSW 2010
> Australia
> ______________________________________________
> 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] R CMD check and Suggests Packages
Prof Brian Ripley