R CMD check error
1
0
Entering edit mode
Fangxin Hong ▴ 810
@fangxin-hong-912
Last seen 10.2 years ago
Hi list, As I am trying to make a package myself, I met the error in R CMD check, checking examples part, as it always tells me that "Error: couldn't find function "RA"", but I know that function RA is there. And if I run those examples myself, I don't have any problem. This problem was not there before, I don't remember what I changed, but just wouldn't change back. Any help is highly appreciated! Fangxin -- * checking package directory ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking package dependencies ... OK * checking index information ... OK * checking package subdirectories ... OK * checking Rd files ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * creating RankProd-Ex.R ... OK * checking examples ... ERROR Running examples in UsePack-Ex.R failed. The error most likely occurred in: > ### * plot.RA > ### ** Examples > > > data(godata) > > subset <- c(1:4,28:30) RA.out1 <- RA(godata[,subset],go.cl[subset],) Error: couldn't find function "RA" Execution halted Fangxin Hong, Ph.D. Plant Biology Laboratory The Salk Institute 10010 N. Torrey Pines Rd. La Jolla, CA 92037 E-mail: fhong@salk.edu
• 1.4k views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 10.2 years ago
Hi Fangxin, Is RA() a function in your package or one that is part of another package? If the latter, then your problem is very likely to be that you need to require() the package before using it. You can investigate further by adding some print() statements to the example that errors out. Helpful things to see would be what's in the current environment (ls()) and what packages are attached (search()). Also, when you try to reproduce the error in the example, you should try loading the version of your package that R CMD check installs into FOO.Rcheck (if your package is named FOO). You can use library() with lib.loc arg to achieve this. + seth
ADD COMMENT

Login before adding your answer.

Traffic: 506 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6