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

From: Uwe Ligges <>
Date: Wed, 12 Sep 2007 11:31:55 +0200

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. mailing list Received on Wed 12 Sep 2007 - 09:38:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Sep 2007 - 20:41:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.