Build a new roclet.Source:
To create a new roclet, you will need to create a constructor function
roclet, and then implement the methods described below.
roclet(subclass, ...) roclet_preprocess(x, blocks, base_path) roclet_process(x, blocks, env, base_path) roclet_output(x, results, base_path, ...) roclet_clean(x, base_path) roclet_tags(x)
A list of roxy_block objects.
Path to root of source package.
Value returned from your
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
@evaltag 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.
roxygenise(clean = TRUE). Should remove any files created by the roclet.
roclet_tags() is no longer used; instead provide a
method for each tag.