Unnamed elements in S4 classes

Issue #115 resolved
Jason Vander Heiden created an issue

From CRAN:

This concerns packages

AcceptanceSampling BioGeoBEARS LumReader TIMP diffobj expp rmgarch segMGarch seqmon shazam stacomiR taxlist ungeneanno unitizer

which now give warnings in R-devel (see the CRAN check results page) of the form

  • checking whether package ‘TIMP’ can be installed ... [21s/43s] WARNING Found the following significant warnings: The prototype for class “dat” has undefined slot(s): 'dscal' The prototype for class “kin” has undefined slot(s): 'posk'

that is, slots are named in the prototype but not in the specification of slots. If the message has '' as the slot name, it means the prototype has un-named elements.

This was briefly an error (and shows as such on some of the check results), is currently a warning but it planned to become an error again (when the package is uninstallable).

Please correct ASAP and before Jan 28 to safely retain the package on CRAN.

(Assigned to @nimanouri just because @ssnn was busy with another critical bug. Reassign as you see fit.)

Comments (3)

  1. Jason Vander Heiden reporter

    Okay. It's probably just a matter of changing:

    prototype=c(name="IMGT_V", ...)
    

    To:

    prototype=list(name="IMGT_V", ... )
    

    But you'll need to test.

  2. Log in to comment