[Rd] help with Rcmd check

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Dec 29 17:15:22 CET 2004


Does your package load cleanly under R_DEFAULT_PACKAGES=NULL?
I suspect it does not load at all because your shared object does not, but

env R_DEFAULT_PACKAGES=NULL R
> library(excelpoi)

will tell you if not.

On Wed, 29 Dec 2004, Whit Armstrong wrote:

> I've been working on a package that requires a shared library to be loaded.
> I have used the NAMESPACE file to load the library according to:
> http://cran.r-project.org/doc/manuals/R-exts.html#Load%20hooks
> <http://cran.r-project.org/doc/manuals/R-exts.html#Load%20hooks>
>
> my shared library is "excelpoi.so" hence I have added "useDynLib(excelpoi)"
> to my NAMESPACE file.
>
> Prior to this change, my package was passing Rcmd check with no errors or
> warnings.  After this change, I get 5 warnings:
>
> whita$grep 'WARN' /home/whita/dvl/excelpoi.Rcheck/00check.log
> * checking S3 generic/method consistency ... WARNING
> * checking replacement functions ... WARNING
> * checking foreign function calls ... WARNING
> * checking for missing documentation entries ... WARNING
> * checking for code/documentation mismatches ... WARNING
> whita$
>
> Can anyone suggest a fix to those warnings.  My package only has one
> function in it which has nothing to do with replacement and has no S3
> methods.  Here it is (from file excelpoi/R/excelpoi.R):
>
> write.xls <- function(x,filename,sheetName,writeColNms=T,writeRowNms=T) {
>  if(missing(sheetName) && typeof(x)=="list") sheetName <- NULL
>
> .Call("R2xls",x,filename,sheetName,writeColNms,writeRowNms,PACKAGE="excelpoi
> ")
> }

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