[R-pkg-devel] Weird error on CRAN linux check

Duncan Murdoch murdoch@dunc@n @ending from gm@il@com
Wed Jul 4 22:39:37 CEST 2018

On 04/07/2018 4:04 PM, Joris Meys wrote:
> On Wed, Jul 4, 2018 at 9:31 PM, Duncan Murdoch <murdoch.duncan using gmail.com 
> <mailto:murdoch.duncan using gmail.com>> wrote:
>     That shouldn't matter.  That function was created in a local
>     environment whose parent is <environment: namespace:huxtable>
>     (probably by the huxtable:::make_setter_getters function, but I
>     didn't check).
>     Duncan Murdoch
> I would think it does matter. Methods are found on the search path, but 
> the environment where the methods are defined is not on the search path. 
> It's a child environment of the namespace, and hence cannot be reached 
> from either the global environment or the namespace if I understood it 
> correctly.

The environment of a function is where it looks for objects, not where
it is stored.  That method is stored in the huxtable namespace, and 
exported from it.  That's why 
getFromNamespace("align.huxtable","huxtable") (or even
huxtable::align.huxtable) finds it.

I don't know the source of the original error.

Duncan Murdoch

More information about the R-package-devel mailing list