Learn R Programming

kfigr (version 1.2.1)

anchors: Anchor Information

Description

Retrieves diagnostics such as the anchor index and history. Use for code verification and troubleshooting. Also used internally by kfigr.

Usage

anchors(tag)

Arguments

tag

Optional specification of return type. tag = "index" returns a dataframe listing the chunk labels, asigned types and index numbers. tag = "history" returns a dataframe listing all reference calls, in order.

Value

If tag = "index", a dataframe listing all anchored chunks. If tag = "history", a dataframe listing all references made, in order. If the value of tag matches a specific type, all references of that type are provided in a list. If tag is missing, all references of all types are provided in a nested list.

Examples

Run this code
# NOT RUN {
figr("foo", type="figure")
figr("bar", type="table")
figr("test", type="figure")
anchors()

# }

Run the code above in your browser using DataLab