Hi, I was asked by CRAN-maintainers to provide two versions of
median.integer64, one with and one without a dots-argument.
However, doing so results in a code-documentation mismatch, because I have
\method{median}{integer64}(x, na.rm = FALSE)
and now also need
\method{median}{integer64}(x, na.rm = FALSE, \dots)
but selecting between both using \Sexpr{} seems not to be allowed in a
Rd-usage-section.
Anyone knows the proper way to do this?
Jens Oehlschl�gel
-------- Forwarded Message --------
Subject: CRAN packages maintained by you
Date: Thu, 23 Mar 2017 18:08:18 +0100
From: Kurt Hornik <[email protected]>
Reply-To: [email protected]
To: [email protected], [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected], [email protected]
CC: [email protected]
Dear maintainers,
This concerns the CRAN packages
Bolstad DescTools RVAideMemoire bit64 circular rv units zoo
maintained by one of you:
Achim Zeileis <[email protected]>: zoo
Andri Signorell <[email protected]>: DescTools
Claudio Agostinelli <[email protected]>: circular
Edzer Pebesma <[email protected]>: units
James Curran <[email protected]>: Bolstad
Jens Oehlschl�gel <[email protected]>: bit64
Jouni Kerman <[email protected]>: rv
Maxime Herv� <[email protected]>: RVAideMemoire
You may already have noticed that under r-devel these have given
warnings like
* checking S3 generic/method consistency ... WARNING
median:
function(x, na.rm, ...)
median.Bolstad:
function(x, na.rm)
for some time now, following
\item \code{median()} gains a formal \code{\dots} argument, so
methods with extra arguments can be provided.
Could you please update your package code to eliminate these warnings,
ideally as quickly as possible?
In one package co-developed by me, I went for
if(is.na(match("...", names(formals(median))))) {
median.tuple <- function(x, na.rm = FALSE) {
x <- as.numeric(x)
NextMethod()
}
} else {
median.tuple <- function(x, na.rm = FALSE, ...) {
x <- as.numeric(x)
NextMethod()
}
}
which may be the "simplest" way forward ...
Best
-k
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel