[R] Building package: What does this message about rcompgen imply?

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu May 3 04:15:28 CEST 2007

We don't have any of the basic details the posting guide asks for!

If this is R 2.5.0, rcompgen is a recommended package and ought to be 
installed.  If it is not, then .check_Rd_refs cannot cross-check 
references against all the standard and recommended packages, and that 
looks like the cause of the error.

If it is an earler version of R, the advice in the posting guide to update 
applies.  CRAN will be checking on 2.5.0 and later.

On Thu, 3 May 2007, Peter Dunn wrote:

> Hi all
> I'm updating a package for submission to CRAN, and I am getting
> an error message I never have seen before, and can't find out
> what it implies or means (and hence, what I need to do to fix
> it).
> After running R CMD check, I get this:
> <snip>
> * checking foreign function calls ... OK
> * checking R code for possible problems ... OK
> * checking Rd files ... OK
> * checking Rd cross-references ... WARNING
> Error in .find.package(package, lib.loc) :
>        there is no package called 'rcompgen'
> Execution halted
> * checking for missing documentation entries ... OK
> * checking for code/documentation mismatches ... OK
> * checking Rd \usage sections ... OK
> <snip>
> I am informed: There is no package called 'rcompgen'.  True;
> I never knew there was one, so I certainly never asked for
> it to be loaded.  (I can search all the files in the package directory
> and the string  rcompgen  never appears either, and nor does the
> string  find.package.)  So somewhere, this package must be deemed
> necessary to install.  (I have checked all dependencies too: none of
> those packages need  rcompgen  either.)
> I can get this package from CRAN and install it of course, but I
> don't think I need it.  (Not that I fully understand what it is for
> or what it does...).  I'm sure it implies there is a problem in
> my package, but i don't know what problem that is.
> So can anyone help me:  Why does R think I need package  rcompgen?
> What error/mistake in my Rd files would invoke this?  Where should
> I be looking, and what sort of problem might I be looking for?
> Thanks as always.
> P.

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