Esoteric question on S3, environments, and CRAN


#1

Hi All,

I got a email from CRAN that one of my packages is throwing an error in the dev version of R. Of course, I am appreciative of all the CRAN maintainers do, but I am not able to make much sense of the message, so I thought I would ask here.

The error can be reproduced by checking with
_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_=true in the environment,
which prevents foo.bar S3 method lookup along the search path.

I have googled for this environment variable - got nothing. I also looked in @winston's mirror of the R source code and found nothing.

If you are interested in the gory details, they can be found here.

Can anyone shed any light on this environment variable, or why one might be motivated to set it?

Thanks,

Ian


#2

Practical information from @HenrikBengtsson to answer the question: