I am using roxygen to document an R package. I have a macro file, myMacro.Rd, in the "man/macros" subdirectory of the package. The file specifies the \myMacro
macro. (The macro inserts a <style>
tag into HTML help files to alter the standard CSS in R help files.)
I want to automatically call \myMacro
in every .Rd file of the package. That is, I don't want to manually add \myMacro
(or anything else) to all of my roxygen code. Instead, I want the addition to be made automatically. Is there a way to do this?
I could achieve the same effect by automatically inserting a Roxygen template into every .Rd file. Is there a way to do that instead?