On 04/07/2018 4:04 PM, Joris Meys wrote:


On Wed, Jul 4, 2018 at 9:31 PM, Duncan Murdoch <murdoch.dun...@gmail.com <mailto:murdoch.dun...@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

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to