Re: [Rd] Is it possible to simply the use of NULL slots (or at least improve the help files)?

2020-09-24 Thread Robert Harlow
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 docume

[Rd] R CMD build/check Documentation in Writing R Extensions 1.3

2020-06-27 Thread Robert Harlow
Hi, In WRE section 1.3, there is a note that says "R CMD check and R CMD build run R processes with --vanilla in which none of the user’s startup files are read." While this is true, is it somewhat confusing? When reading quickly, it is possible to read that statement as "running R CMD check is t

Re: [Rd] Possible Regression in setClassUnion between 3.5.0 and 3.6.0

2020-02-25 Thread Robert Harlow
a")) > > > should return "hi!". I'll add that this DOES work properly in 3.6.1 > > > which leads me to suspect this could be due to the subtle change in the > > > way method dispatch was performed to fix a different bug, in 3.6.2. Can > > >

[Rd] Possible Regression in setClassUnion between 3.5.0 and 3.6.0

2020-02-18 Thread Robert Harlow
I am trying to create a class union of class unions to facilitate method dispatch. When I execute code in the global environment, everything acts as expected, however when I put the same code in the context of a package, selectMethod can no longer find the correct method. This first block below put