[R] Problem (environment?) with R CMD CHECK
Peter Langfelder
peter.langfelder at gmail.com
Tue Sep 14 00:20:56 CEST 2010
Hi all,
I have a package that contains a function foo that calls a function
.fooInternal via match.fun('.fooInternal'). This step is necessary
because I want to give the user an option to override .fooInternal
with a custom function. The .fooInternal function name is not
exported. The function foo runs perfectly well when used in a normal R
session. However, the function fails the R CMD CHECK command with the
error
Error in get(as.character(FUN), mode = "function", envir = envir) :
object '.fooInternal' of mode 'function' was not found
I'm wondering if this is some environment misspecification issue? I
also tried replacing .fooInternal by packageName:::.fooInternal
(replacing packageName with actual package name, of course), to no
avail.
Thanks in advance for all replies.
Peter
More information about the R-help
mailing list