[R] R CMD check for packages in a bundle
Robin Hankin
r.hankin at noc.soton.ac.uk
Thu Apr 6 15:31:24 CEST 2006
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
More information about the R-help
mailing list