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

Description Details Tag Usage Slots

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.

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.

Tag Usage

1
2
3
#' @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)


hadley/roxygen3 documentation built on May 17, 2019, 12:16 p.m.