Skip to content
Prev 59012 / 63424 Next

Is it possible to simply the use of NULL slots (or at least improve the help files)?

It seems one of the primary reasons to use the S4 system is *to be strict
about types.*

IMO the documentation is quite clear on this point, if NULL is not a
subclass of character, which it isn't because inherits(NULL, "character")
is FALSE then everything is behaving exactly as expected and documented.

Between making the calling function responsible for passing an object of
the correct type and setClassUnion, it doesn't seem that complicated to
handle the use case.

On Thu, Sep 24, 2020 at 5:26 PM Martin Morgan <mtmorgan.bioc at gmail.com>
wrote:

  
  
Message-ID: <CAHdfS964jTvWYVsVR300=s8X7RGr+s430Sjrj=R9DExc+=9n0g@mail.gmail.com>
In-Reply-To: <BL0PR04MB6609DFA10450A5237FF202ACF9390@BL0PR04MB6609.namprd04.prod.outlook.com>