Closed jonthegeek closed 1 month ago
I like this idea. Wonder if it can also be added to vignettes?
@jwildfire With a LITTLE more work (I'll have to read but I'm pretty sure it won't take long), we could have the shared-params
object read from .md
files, and use those same .md
files in Vignettes. That technique could also work for the sampleData docs, which doesn't have @params to import. It's an intriguing idea; basically a centralized glossary that can be used for parameter docs but also other similar uses...
QC Details
For something like this, with a number of parameters that are reused across many functions, I find it helpful to document those parameters in a central place. For example, it can be helpful to have a
aaa-shared_params.R
file containing a namedshared-params
object with@param
definitions, and then all functions that reference those shared parameters use@importFrom shared-params
to get the central, canonical definition of that parameter.Additional Comments