Re: [R-pkg-devel] Documenting courtesy S3 methods

2020-08-06 Thread Lenth, Russell V
Testing results for Bert's suggestion... I tested this with a different -- much smaller -- package: Put the S3method() construct in NAMESPACE but the generic package is not mentioned at all in any DESCRIPTION field. I built the package and checked it --as-cran. Interesting results: * Calling

Re: [R-pkg-devel] Documenting courtesy S3 methods

2020-08-06 Thread Lenth, Russell V
Thanks, Bert. This looks potentially useful as an alternative to the way I currently dynamically register the method. It does seem to require that 'pkg' must actually be installed on the system in order to work, and that pkg would have to be listed in Import. I'd rather not force users to inst

Re: [R-pkg-devel] Package can't be imported with Suggests

2020-08-06 Thread Dr . Jens Oehlschlägel
Dirk, This sounds familiar: in package 'bit' for bit | bitwhich R did neither S3-dispatch to "|.bit" nor to "|.bitwhich" but nonsensically to the default method. It took me a while to reverse my class thinking enough to realize that I could get control by forcing dispatch to a common clas