hadley / r-pkgs

Building R packages
https://r-pkgs.org
Other
866 stars 631 forks source link

describe @exportS3Method for non-owned generics and delayed method registration #1087

Closed tanho63 closed 1 month ago

tanho63 commented 1 month ago

Closes #1032 and closes #1082.

Cleans up the section about exporting S3 methods for non-owned generics to recommend using exportS3Method in all scenarios (hard and soft dependencies).

I'm unsure if it would be worth mentioning how to handle things for pre R3.6 (and hide the deleted section in a collapsed details block?) - R 3.6 is quite old now.

hadley commented 1 month ago

Thank you!