Re: [Bioc-devel] Empty DataFrame Causes SummarizedExperiment Constructor Error

2023-05-20 Thread Hervé Pagès
On 5/17/23 23:59, Robert Castelo wrote: not sure whether this is relevant, but I observed that while an empty base R 'data.frame()' constructor gives zero-length character vectors for row and column names, the empty 'DataFrame()' constructor gives also a zero-length character vector for

Re: [R-pkg-devel] Intrinsic UTF-8 use in aspired CRAN package

2023-05-20 Thread Schuhmacher, Dominic
In case more people want to check this out, the minimal example package can be downloaded from https://owncloud.gwdg.de/index.php/s/ejhN3vd51572e27 Saying (in an UTF-8 locale) R CMD check minimal_1.0.tar.gz reproduces the described problem, whereas PDFLATEX=lualatex \

Re: [Bioc-devel] issue with .local() hack used in S4 methods

2023-05-20 Thread Hervé Pagès
On 5/19/23 14:37, Martin Maechler wrote: Could you file a bug at R's bugzilla? {I know we have too many open bugs there, notably related to S4, but still you'd do a service to the R community.} Done: https://bugs.r-project.org/show_bug.cgi?id=18538 Cheers, H. -- Hervé Pagès

Re: [Bioc-devel] issue with .local() hack used in S4 methods

2023-05-20 Thread Hervé Pagès
oops, wrong list sorry. I meant to send this to the R-devel list. Done now. @Martin FWIW I worked around this by keeping the ellipsis in the arg list of the method:  > setMethod("foo", "raw", function(x, y=-5, ..., z=22) y) > selectMethod("foo", "raw") Method Definition: function (x, ..., z

[Rd] issue with .local() hack used in S4 methods

2023-05-20 Thread Hervé Pagès
Hi, Just ran across this:     foo <- function(x, ..., z=22) z     setMethod("foo", "character", function(x, y=-5, z=22) y)     # Creating a generic function from function ‘foo’ in the global environment Then:     foo("a")     # [1] 22 Should return -5, not 22. That's because the call to