[R] Problem (environment?) with R CMD CHECK

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Sep 14 11:51:52 CEST 2010


I do not see any problem, we'd need to look at the package in order to 
help, I think.

Best,
Uwe Ligges

On 14.09.2010 00:20, Peter Langfelder wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list