On Tue, 8 Jan 2019 at 08:39, Sebastian Meyer <seb.me...@fau.de> wrote: > > To fix method lookup for R >= 3.6.0, you can use delayed S3 method > registration along the lines of: > > if (getRversion() >= "3.6.0") { > S3method(pkg::gen, cls) > }
And to add this automatically to your NAMESPACE with roxygen2, you may use the following: #' @rawNamespace if(getRversion() >= "3.6.0") { #' S3method(pkg::gen, cls) #' } else { #' export(gen.cls) #' } See, e.g., https://github.com/r-quantities/errors/blob/master/R/misc.R#L243 Iñaki ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel