register_S3_method | R Documentation |
box::register_S3_method
makes an S3 method for a given generic and
class known inside a module.
box::register_S3_method(name, class, method)
name |
the name of the generic as a character string. |
class |
the class name. |
method |
the method to register. |
Methods for generics defined in the same module do not need to be
registered explicitly, and indeed should not be registered. However,
if the user wants to add a method for a known generic (defined outside the
module, e.g. print
), then this needs to be made known
explicitly.
See the vignette at vignette('box', 'box')
for more information about
defining S3 methods inside modules.
box::register_S3_method
is called for its side effect.
Do not call registerS3method
inside a
module. Only use box::register_S3_method
. This is important for the
module’s own book-keeping.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.