-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
Description
At the moment, all the ergm terms are documented in one big file (ergm-terms.Rd) with a "standard" syntax for keywords. Porting them to Roxygen (somehow) would greatly simplify maintenance in the following ways:
- Documentation "source" could be placed next to the
InitErgmTermfunction definitions, for much better maintainability. - Using
@template, common bits of text (like meanings of arguments common among many terms) only need to be written and updated once. - Markdown is less clunky than the
Rdformat.
AFAIK, roxygen2 has an API for custom @ tags and document types, and we could write them to generate automatically formatted Rd files. Some other things we might be able to do:
- Generate a help file for each term and a help file with all the terms and/or a term index. This would allow us to link to a specific term's help.
@seealso-style cross-referencing for related terms.
Any thoughts?