figr | R Documentation |
Reference a code chunk.
figr(label, prefix, link, type)
label |
The code chunk label. |
prefix |
Logical: return the prefix (chunk type) along with the rank. |
link |
### Logical: Place an HTML link to the anchor? |
type |
The type of the referenced chunk. |
A text or url reference to the code chunk.
figr("test", type="reference")
figr("test")
figr("test", TRUE, link=FALSE)
if(interactive()){
require(knitr)
opts_knit$set(kfigr.prefix=TRUE, kfigr.link=TRUE)
figr("test")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.