Mapping roxygen2 param definitions to help with inheritance

I'm working on a package with parameters that appear several times so I use tags such as @inheritParams.

I'm wondering if anyone knows of a package that'd be a bit like pkgapi (which helps with functions) but that'd output say a data.frame with parameter name, definition, R file where it's defined, Rd files where that definition is used (there could be several lines for each parameter name if there is duplicated documentation).

The data.frame would help identify duplicates. It might also help finding where best to define a parameter, but not sure how that'd work (e.g. if several exported functions have param param1, and call the same internal function with that parameter, param1 should be defined in the docs of the internal function?).

The closest thing I could find is https://metrumresearchgroup.github.io/sinew/commandline.html#makedictionary by @yonicd.

2 Likes