Re: [Rd] S3 lookup rules changed in R 3.6.1

2019-10-10 Thread Konrad Rudolph
Oh, I had missed that that code path is now enabled by default. It’s worth noting that the commented-out test in that commit also still succeeds if invoked via `getS3method`. So at the very least there’s now an inconsistency in the lookup performed by R internally (via `UseMethod`) and `getS3method

Re: [Rd] S3 lookup rules changed in R 3.6.1

2019-10-09 Thread Duncan Murdoch
On 09/10/2019 3:22 p.m., Konrad Rudolph wrote: tl;dr: S3 lookup no longer works in custom non-namespace environments as of R 3.6.1. Is this a bug? I don't know whether this was intentional or not, but a binary search through the svn commits finds that the errors started in this one:

[Rd] S3 lookup rules changed in R 3.6.1

2019-10-09 Thread Konrad Rudolph
tl;dr: S3 lookup no longer works in custom non-namespace environments as of R 3.6.1. Is this a bug? I am implementing S3 dispatch for generic methods in environments that are not packages. I am trying to emulate the R package namespace mechanism by having a “namespace” environment that defines gen