View source: R/external-generic.R
methods_register | R Documentation |
When using S7 in a package you should always call methods_register()
when
your package is loaded. This ensures that methods are registered as needed
when you implement methods for generics (S3, S4, and S7) in other packages.
(This is not strictly necessary if you only register methods for generics
in your package, but it's better to include it and not need it than forget
to include it and hit weird errors.)
methods_register()
Nothing; called for its side-effects.
.onLoad <- function(...) {
S7::methods_register()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.