Displaying 3 results from an estimated 3 matches for "bysi".
Did you mean:
bsi
2020 May 22
2
Compatibility issues caused by new simplify argument in apply function
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,
...,
simplify = TRUE) {
?
Henrik
On Fri, May 22, 2020 at 6:26 AM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>
> You didn't explained what the error is. This is what it looks like to
> me, but I'm probably wrong in som...
2020 May 22
3
Compatibility issues caused by new simplify argument in apply function
...;}"))
}
} else {
if ("simplify" %in% names(formals(base::apply)))
{
return("}\n\\item{simplify}{Currently ignored")
} else {
return("")
}
}
}
*2. Using \Sexpr inside the \usage block*
\usage{
\S4method{apply}{Speclib}(X, FUN, bySI = NULL, ...
\Sexpr[echo=TRUE,results=rd,stage=install]{
hsdar:::.applyInHelp2(usage = TRUE)
}
)
}
*Function .applyInHelp2*
.applyInHelp2 <- function(usage)
{
if (usage)
{
if ("simplify" %in% names(formals(base::apply)))
{
return(", simplify = TRUE)")...
2020 May 22
0
Compatibility issues caused by new simplify argument in apply function
...es(formals(base::apply)))
> {
> return("}\n\\item{simplify}{Currently ignored")
> } else {
> return("")
> }
> }
> }
>
>
> *2. Using \Sexpr inside the \usage block*
> \usage{
> \S4method{apply}{Speclib}(X, FUN, bySI = NULL, ...
> \Sexpr[echo=TRUE,results=rd,stage=install]{
> hsdar:::.applyInHelp2(usage = TRUE)
> }
> )
> }
>
>
> *Function .applyInHelp2*
> .applyInHelp2 <- function(usage)
> {
> if (usage)
> {
> if ("simplify" %in% names(formals(...