[R] R CMD check for packages in a bundle

Paul Gilbert pgilbert at bank-banque-canada.ca
Thu Apr 6 17:41:02 CEST 2006


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.

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}}




More information about the R-help mailing list