Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

generics-package

generics: common S3 generics


Description

These are generic functions that can be used to minimize package dependencies when multiple packages have the same method.

Details

An attempt was made to use generic class signatures that were consistent with existing code. For example, dplyr and lime both have explain() methods that do very different things but both take x as their main object. Even though x would be different in those cases, this package provides access to the S3 generic so that other packages that may want to create explain() methods for their objects can do so without loading either of the other packages.

For example, if a new tidy() method is being developed for a package, this lightweight package can be the required dependency to have access to the generic method (instead of depending on broom and installing its dependencies).

Author(s)

Maintainer: Hadley Wickham hadley@rstudio.com

Authors:

Other contributors:

  • RStudio [copyright holder]

See Also

Useful links:


generics

Common S3 Generics not Provided by Base R Methods Related to Model Fitting

v0.1.0
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], Max Kuhn [aut], Davis Vaughan [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.