Skip to content
Prev 1711 / 12125 Next

[R-pkg-devel] Exporting S3 methods for base generics

Hi Charles,

my mistake. I forgot that pmax has an extra argument na.rm. I'm surprised
you could define the method, as this normally should return an error from
conformMethod().

So:
#' @rdname pmax
setGeneric("pmax", signature = "...")

should work. I've used this myself in quite a number of packages.

Cheers
Joris

On Mon, Jun 26, 2017 at 7:20 PM, Charles Determan <cdetermanjr at gmail.com>
wrote: