roxygen3 (version 0.1)

SlotTag-class: @slot: document the slots of a S4 class.

Description

Many S4 slots are considered internal implementation details, so slots (unlike params) are not documented by default. You can use the @slot and @autoSlots tags to document them. An example of the output is include below.

Arguments

Tag Usage

#' @slot name
#'  @slot name description
#'  @autoSlots

Slots

slots
An object of class character
classname
An object of class character
text
An object of class character
srcref
An object of class srcref (S3)

Details

If a name but no description is provided for @slot, the description will just contain a link to the documentation for the type of object that goes in that slot. This is what is used for all slots if you use @autoSlots.