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
because BiocGenerics provides a format.list, whereas base::format.default handles the list case with an if (is.list(x)). So the dispatch moves from base::format.default to BiocGenerics::format.list, which itself uses base::format.AsIs:
# https://github.com/Bioconductor/BiocGenerics/blob/devel/R/format.R#L29format.list<-base::format.AsIs# https://github.com/wch/r-source/blob/tags/R-4-4-2/src/library/base/R/format.R#L277-L292format.AsIs<-function(x, width=12, ...)
{
...
format.default(rvec, justify="right") # note the lack of passing '...', dropping trim=TRUE
}
A workaround is calling format.default explicitly in fill_template:
The following call to
Q
no longer works when loading theBiocGenerics
library:The reason for this is that in
fill_template
, we do the following:clustermq/R/util.r
Lines 35 to 37 in ec01add
which boils down to:
because
BiocGenerics
provides aformat.list
, whereasbase::format.default
handles thelist
case with anif (is.list(x))
. So the dispatch moves frombase::format.default
toBiocGenerics::format.list
, which itself usesbase::format.AsIs
:A workaround is calling
format.default
explicitly infill_template
:clustermq/R/util.r
Lines 35 to 37 in c7a0800
The text was updated successfully, but these errors were encountered: