Skip to content

Changes in apply signature #126

Closed
Closed

Description

@cbeleites

Dear maintainer,

Please see the problems shown on
https://cran.r-project.org/web/checks/check_results_hyperSpec.html.

The problems in r-devel are from

  • apply() gains a simplify argument to possibly disable simplifying
    results.

To fix the code, it may be simplest to conditionalize your setMethod()
calls according to whether apply() has a simplify argument or not. I
would perhaps do something like

  my_apply_method <- .....

  if("simplify" %in% names(formals(base::apply))) 
     setMethod("apply", signature(.......),
               function(X, MARGIN, FUN, ..., simplify = TRUE)
                    my_apply_method(X, MARGIN, FUN, ...))
  else
     setMethod("apply", signature(.......),
               function(X, MARGIN, FUN, ...)
                    my_apply_method(X, MARGIN, FUN, ...))

or appropriate variants thereof.

Codoc mismatches in Rd files are a nuisance: in principle you could also
conditionalize your Rd code along the above lines via \Sexpr{}, but in
cases where these methods do not add new arguments, you could simply
comment out the \usage entries.

Please correct before 2020-05-29 to safely retain your package on CRAN.

Best,
-k

Activity

  1. self-assigned this
    on May 18, 2020
  2. eoduniyi commented on May 27, 2020

    @eoduniyi
    Collaborator

    I can successfully make, build, and check/test hyperSpec on R 4.1, so going to close this now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions