Could someone provide an example of how to properly use the Template Tags in Roxygen2. I have tried to do the most obvious thing (to me):
In my packageName-package.R file:
#' [... other Roxygen blocks ...]
#'
#' @templateVar testTemplateTag Testing one two
NULL
Then in a file someFunction.R
#' [... other Roxygen blocks ...]
#'
#' @template testTemplateTag
I get the error:
Error : Can not find template testTemplateTag
I am trying to have one place to document commonly repeated definitions examples etc. When these things are nested within a set of functions I have been using @inheritParms. But some things, like definitions and and other descriptions, are used in several places. I've searched high and low for usage of @template and @templateVar and have not found anything.
Thanks.
man-roxygen/- hadley