> 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 the
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 you
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,
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,
...,
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. Yo
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 c