subsettable: Define a function as being 'subsettable' using $ operator

subsettableR Documentation

Define a function as being 'subsettable' using $ operator

Description

For labelling items like fig(), tab() or eq(), implements the $ method to retrieve a reference and build a link to the element.

Usage

## S3 method for class 'subsettable_labelling_ref'
x$name

Arguments

x

A subsettable_labelling_ref function.

name

The value to use for the ref= argument.

Examples

eq(pythagoras) # Create a label / tag pair for R Markdown display equations
eq$pythagoras  # Create a link to the equation somewhere else in the document

svSweave documentation built on May 10, 2022, 5:06 p.m.