Re: [R-pkg-devel] Getting two independent packages with identical S3 generics to dispatch each other's methods

2020-07-10 Thread Wolfgang Viechtbauer
Hi Pavel, I asked essentially the same question a few weeks ago: https://stat.ethz.ch/pipermail/r-package-devel/2020q2/005609.html As Jeff already suggested, there is the generics package which might be of use. Aside from this, I wasn't able to distill a workable solution from the discussion t

Re: [R-pkg-devel] Getting two independent packages with identical S3 generics to dispatch each other's methods

2020-07-10 Thread Jeff Newmiller
Perhaps: https://cran.r-project.org/web/packages/generics/index.html On July 10, 2020 4:51:52 PM PDT, "Pavel N. Krivitsky" wrote: >Dear All, > >I would like to have two packages that do not depend on each other that >have an identical generic to be able to dispatch to each other's (non- >confl

[R-pkg-devel] Getting two independent packages with identical S3 generics to dispatch each other's methods

2020-07-10 Thread Pavel N. Krivitsky
Dear All, I would like to have two packages that do not depend on each other that have an identical generic to be able to dispatch to each other's (non- conflicting) methods. If it is of interest, the background for why this is needed is given at the end of this e-mail. As it is, it looks like tw

[R-pkg-devel] ISNAN warning [-Wfloat-conversion]

2020-07-10 Thread Morgan Morgan
Hi, Please see below warning from GCC (rtools 4.0). I know that the flag "-Wconversion" is not used by default when building packages in R but I was wondering if the below warning can be avoided by changing the ISNAN function in the R C API? The functions R_IsNaN and R_IsNA do not generate these w