[Rd] "could not find function" in R CMD check

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Sep 12 11:31:55 CEST 2007


Perhaps Namespace issues? But no further ideas. You might want to make 
your package available at some URL so that people can look at it and help...

Uwe Ligges


Ross Boylan wrote:
> During R CMD check I get this:
> ** building package indices ...
> Error in eval(expr, envir, enclos) : could not find function
> "readingError"
> Execution halted
> ERROR: installing package indices failed
> 
> The check aborts there.  readingError is a function I just added; for
> reference
> setClass("readingError", contains="matrix")
> readingError <- function(...) new("readingError", matrix(...))
> which is in readingError.R in the project's R subdirectory.
> 
> Some code in the data directory invokes readingError, and the .Rd file
> includes \alias{readingError}, \alias{readingError-class},
> \name{readingError-class} and an example invoking readingError.
> 
> I'm using R 2.5.1 as packaged for Debian GNU/Linux.
> 
> Does anyone have an idea what's going wrong here, or how to fix or debug
> it?
> 
> The code seems to work OK when I use it from ESS.



More information about the R-devel mailing list