I am creating an R package. I ran R CMD check on the package, and everything passed until it tried to run the examples. Then, the result was:
* checking examples ... ERROR Running examples in REEMtree-Ex.R failed. The error most likely occurred in: > ### * AutoCorrelationLRtest > > flush(stderr()); flush(stdout()) > > ### Name: AutoCorrelationLRtest > ### Title: Test for autocorrelation in the residuals of a RE-EM tree > ### Aliases: AutoCorrelationLRtest > ### Keywords: htest tree models > > ### ** Examples > > # Estimation without autocorrelation > simpleEMresult<-RandomEffectsTree(Y~D+t+X, data=simpleREEMdata, random=~1|ID, > simpleREEMdata$ID) Error: couldn't find function "RandomEffectsTree" Execution halted The function "RandomEffectsTree" is defined in the R code for the package. How can I refer to other functions from the package in examples? (I have the "Writing R-extensions" PDF, so it would be enough to point me to the right page, if the answer is in there and I just missed it.) Thanks! Rebecca ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

