Re: [Rd] Compatibility issues caused by new simplify argument in apply function

2020-05-23 Thread Martin Maechler
> Lukas Lehnert via R-devel > on Fri, 22 May 2020 12:26:05 +0200 writes: > Dear R Developers, > the new simplify argument in apply causes that my package (hsdar) does not > pass the > checks in R-devel. > The workaround, Kurt Hornik send me, is working for

Re: [Rd] Compatibility issues caused by new simplify argument in apply function

2020-05-22 Thread Lukas Lehnert via R-devel
I am sorry for being not specific enough. Both of you were right with your guess how the initial problem looked like. I followed the suggestion of Henrik and at least on my computer it seems to work (sometimes solutions are much easier than you think). Let's see what CRAN tells me... Thank

Re: [Rd] Compatibility issues caused by new simplify argument in apply function

2020-05-22 Thread Duncan Murdoch
On 22/05/2020 11:47 a.m., Henrik Bengtsson wrote: Interesting problem. I'm very rusty on S4 but would one solution be to, already now, add 'simplify = TRUE' to the S4 method and document it; setMethod("apply", signature(X = "Speclib"), function(X, FUN,

Re: [Rd] Compatibility issues caused by new simplify argument in apply function

2020-05-22 Thread Henrik Bengtsson
Interesting problem. I'm very rusty on S4 but would one solution be to, already now, add 'simplify = TRUE' to the S4 method and document it; setMethod("apply", signature(X = "Speclib"), function(X, FUN, bySI = NULL, ...,

Re: [Rd] Compatibility issues caused by new simplify argument in apply function

2020-05-22 Thread Duncan Murdoch
You didn't explained what the error is. This is what it looks like to me, but I'm probably wrong in some details: 1. R-devel added an argument to the apply() function, so the header has changed from function (X, MARGIN, FUN, ...) to function(X, MARGIN, FUN, ..., simplify = TRUE) 2.

[Rd] Compatibility issues caused by new simplify argument in apply function

2020-05-22 Thread Lukas Lehnert via R-devel
Dear R Developers, the new simplify argument in apply causes that my package (hsdar) does not pass the checks in R-devel. The workaround, Kurt Hornik send me, is working for the R-code: if("simplify" %in% names(formals(base::apply))) do something else do something else Unfortunately, I