[R] R CMD check for packages in a bundle

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Apr 6 19:01:20 CEST 2006


On Thu, 6 Apr 2006, Paul Gilbert wrote:

> I think you have to remove the  DESCRIPTION.in  file when you check the
> package stand alone. As I recall,  if it exists that is the flag to
> indicate a bundle. Also beware that the DESCRIPTION file in the stand
> alone package is not exactly the same as the DESCRIPTION.in file when it
> is part of the bundle.
>
> What you are trying to do does work, I do it all the time, but there are
> a few details to work out. Because of the above differences I actually
> generate the DESCRIPTION* files from my Makefile, differently depending
> on the target.

I do too.  Having a DESCRIPTION.in is irrelevant: having a Contains: line 
in DESCRIPTION is the test used.

Can we please read the posting guide and not use R-help for

'questions and discussion about code development in R'

which is the description of the R-devel list.

>
> Paul Gilbert
>
> Robin Hankin wrote:
>
>> Hi
>>
>> [MacOsX 10.4.6;  R-2.2.1]
>>
>> I have a  bundle that comprises three packages.  I want to run R CMD
>> check on
>> each one individually, as it takes a long time to run  on all three.
>> I am
>> having problems.
>>
>> The bundle as a whole passes R CMD check, but fails when I cd to the
>> bundle
>> directory and run R CMD check on a  package directory.
>>
>> The whole bundle passes:
>>
>> octopus:~/scratch% R CMD check ./BACCO
>> * checking for working latex ... OK
>> * using log directory '/Users/rksh/scratch/BACCO.Rcheck'
>> * using R version 2.2.1, 2005-12-20
>> * checking for file 'BACCO/DESCRIPTION' ... OK
>> * looks like 'BACCO' is a package bundle
>> * this is bundle 'BACCO' version '1.0-29'
>> * checking if this is a source bundle ... OK
>>
>> [snip]
>>
>> ** creating approximator-manual.tex ... OK
>> ** checking approximator-manual.tex ... OK
>>
>> octopus:~/scratch%
>>
>> but R CMD check fails on the packages individually:
>>
>>
>> octopus:~/scratch/BACCO% R CMD check ./calibrator
>> * checking for working latex ... OK
>> * using log directory '/Users/rksh/scratch/BACCO/calibrator.Rcheck'
>> * using R version 2.2.1, 2005-12-20
>> * checking for file 'calibrator/DESCRIPTION' ... OK
>> * looks like 'calibrator' is a package bundle
>> * this is bundle 'BACCO' version '1.0-29'
>> * checking if this is a source bundle ... OK
>>
>> /Library/Frameworks/R.framework/Resources/bin/INSTALL: line 1: cd: /
>> Users/rksh/scratch/BACCO/calibrator/emulator: No such file or directory
>> /Library/Frameworks/R.framework/Resources/bin/INSTALL: line 1: cd: /
>> Users/rksh/scratch/BACCO/calibrator/calibrator: No such file or
>> directory
>> /Library/Frameworks/R.framework/Resources/bin/INSTALL: line 1: cd: /
>> Users/rksh/scratch/BACCO/calibrator/approximator: No such file or
>> directory
>> ERROR: no 'Package' field in 'DESCRIPTION'
>> ERROR
>> Installation failed.
>> octopus:~/scratch/BACCO%
>>
>>
>> Both DESCRIPTION and DESCRIPTION.in files seem to be OK:
>>
>>
>>
>> octopus:~/scratch/BACCO/calibrator% cat DESCRIPTION
>> Package: calibrator
>> Description: Performs Bayesian calibration of computer models as per
>> [snip]
>> Title: Bayesian calibration of computer models
>> Bundle: BACCO
>> Version: 1.0-29
>> Date: 13 October 2005
>> Depends: R (>= 2.0.0), mvtnorm, adapt
>> Contains: emulator calibrator approximator
>> Title: Bayesian Analysis of Computer Code Output
>> BundleDescription: Bayesian analysis of computer code software.  The
>>   bundle contains routines that evaluate the formulae of Kennedy,
>>   O'Hagan, and Oakley.
>> License: GPL
>> Author: Robin K. S. Hankin <r.hankin at noc.soton.ac.uk>
>> Maintainer: Robin K. S. Hankin <r.hankin at noc.soton.ac.uk>
>> URL: http://www.noc.soton.ac.uk/JRD/SAT/pers/rksh.html
>>
>>
>>
>> octopus:~/scratch/BACCO/calibrator% cat DESCRIPTION.in
>> Package: calibrator
>> Description: Performs Bayesian calibration of computer models as per
>> [snip]
>> Title: Bayesian calibration of computer models
>>
>>
>>
>> --
>> Robin Hankin
>> Uncertainty Analyst
>> National Oceanography Centre, Southampton
>> European Way, Southampton SO14 3ZH, UK
>>  tel  023-8059-7743
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>>
>>
> ====================================================================================
>
> La version française suit le texte anglais.
>
> ------------------------------------------------------------------------------------
>
> This email may contain privileged and/or confidential inform...{{dropped}}
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
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-help mailing list