16.14 Documenting classes, generics, and methods

  • S3 generics
  • S4 classes and methods
    • Use @slot to document the slots of the class.
    • Aim to keep all your documentation together
    • Use @rdname or @describeIn to keep docs together
    • Control ordering of code loading by using @include
  • RC (reference classes)
    • Uses the docstring in the method for the documentation
      • Is included within the ‘Methods’ section
    • You now only need one roxygen block per class
    • Uses the @field
    • See the account example inregexcite