subsettable {svSweave}R 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

[Package svSweave version 1.0.0 Index]