To create a new roclet, you will need to create a constructor function
roclet, and then implement the methods described below.
1 2 3 4 5 6 7 8 9 10 11
roclet_tags(): return named list, where names give recognised tags and
values give tag parsing function. See roxy_tag for built-in options.
roclet_preprocess() is called after blocks have been parsed but before
code has been evaluated. This should only be needed if your roclet affects
how code will evaluated. Should return a roclet.
roclet_process() called after blocks have been evaluated; i.e. the
@eval tag has been processed, and the object associated with each block
has been determined.
roclet_output() is given the output from
roclet_process() and should
produce files on disk.
roclet_clean() called when
roxygenise(clean = TRUE). Should remove
any files created by the roclet.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.