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

2010-09-14 Thread Uwe Ligges
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@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.


__
R-help@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.


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

2010-09-14 Thread Peter Langfelder
2010/9/14 Uwe Ligges lig...@statistik.tu-dortmund.de:
 I do not see any problem, we'd need to look at the package in order to help,
 I think.

I re-checked again and somehow the package now passes all checks, so I
must have mistyped something somewhere. Sorry for that.

Peter

__
R-help@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.