Skip to content

inccooperate R6 documentation with roxygen #17

@GregorDeCillia

Description

@GregorDeCillia

The development of roxygen2 now supports R6 classes and makes it possible to use inline documentation for methods (See r-lib/roxygen2#922 for details). This should be used in the future to document our classes and methods. The advantage here is that the documentation will be more consistent (internally and with other R packages) and we will get automatic warnings if parts of the public API are undocumented. More precisely, all public fields and methods need to be documented. Furthermore, all arguments of public methods also need to be documented (similar to functions).

TODOs:

  • Document persephone and all derived classes through this mechanism
    • Possibly add feature requests or PRs to roxygen2 in case we need some extras (R6 support is not released on CRAN yet)
  • Put the requirements for the dev version of roxygen2 into the DESCRIPTION file or mention it in the README.
  • Set up travis to utilize the dev version of roxygen2 (if we change the DESCRIPTION this should be not necessary) and rebuild the documentation on travis

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions