Skip to content
Prev 2166 / 12125 Next

[R-pkg-devel] Conditionally register method with generic in other package

We use this technique in a couple of places:
https://github.com/tidyverse/dbplyr/blob/6be777d8b23d588f19c98de52f4e58f16c2ef67e/R/zzz.R

Basic idea is to call registerS3method() manually, when needed - it's
just a little tricky because the suggested package may be loaded
either before or after your package.

Hadley
On Thu, Dec 7, 2017 at 1:45 AM, Joshua Ulrich <josh.m.ulrich at gmail.com> wrote: