Learn R Programming

svSweave (version 1.0.0)

subsettable: 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 subsettable_labelling_ref
$(x, name)

Arguments

x

A subsettable_labelling_ref function.

name

The value to use for the ref= argument.

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab