[Rd] --as-cran and need to ignore.svn directories
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Mar 12 18:49:03 CET 2012
On 12/03/2012 16:00, Paul Johnson wrote:
> Good morning:
> I submitted a package update to CRAN and got a bounce because I had
> not run R CMD check with "--as-cran". I'd not heard of that before,
> but I'm glad to know about it now.
Well, it has only existed for about a month, but the customizations its
selects are often much older and were documented as being used by CRAN.
> I see it warns when my functions do use partial argument matching, and
> I like that advice very much.
It switches on a customization that has been documented for years ....
> Also I see this warning
> * checking package subdirectories ... WARNING
> Found the following directory(s) with names of version control directories:
> These should not be in a package tarball.
> Is there a way to cause R to ignore the .svn folders while running R
> CMD check --as-cran or R CMD build?
> It seems a little tedious to have to copy the whole directory tree to
> some other place and remove the .svn folders before building. I can do
> it, but it just seems, well, tedious. I have the feeling that you
> "frequent flyers" would have worked around this already.
You are strongly recommended to run this *on the tarball to be
submitted*. If you have .svn directories in that tarball, then you do
(or CRAN will) have a problem. R CMD build does omit such directories,
and you can of course use .Rbuildignore to ignore other things.
Or if you update to subversion 1.7.x the problem will evaporate, as that
only stores .svn directories at the top level, in my case ~/R/svn/Rpkgs,
above all the individual packages.
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
More information about the R-devel