Skip to content

Convert ergm-terms documentation to Roxygen? #28

@krivit

Description

@krivit

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 InitErgmTerm function 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 Rd format.

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions