You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Martin Maechler urged for the use of implicit generics in the earlier email discussion (https://stat.ethz.ch/pipermail/bioc-devel/2017-November/012308.html). Admittedly, I feel like I'm fumbling around a bit here with an incomplete understanding of the methods package, but I have tried to implement this, e.g.,
Martin Maechler urged for the use of implicit generics in the earlier email discussion (https://stat.ethz.ch/pipermail/bioc-devel/2017-November/012308.html). Admittedly, I feel like I'm fumbling around a bit here with an incomplete understanding of the methods package, but I have tried to implement this, e.g.,
MatrixGenerics/R/rowMedians.R
Lines 41 to 55 in 584e237
The design pattern of
setGeneric()
followed bysetGenericImplicit()
is modelled on ddr; for example, https://github.com/vertica/ddR/blob/f6d7056fded5ae15385d5a16802b67116c30c188/ddR/R/ops.R#L203-L204.Notably, this is different from that used by BiocGenerics. For example, https://github.com/Bioconductor/BiocGenerics/blob/2f85d3a0de8ab541e55d03ee6ea73d343349a7b8/R/matrix-summary.R#L6
Questions
So the first question is, have I got the use of
setGeneric()
and/orsetGenericImplicit()
correct?Some other questions:
restore
beTRUE
(the default) orFALSE
insetGenericImplicit()
?useAsDefault
argument ofsetGeneric()
?Suggests
and making its use conditional on it being available the right design?The text was updated successfully, but these errors were encountered: