This vignette tests pkgdown output rendering for several use cases.
Highlighting
This document uses a variety of linking styles for testing purposes
Inline code
Local:
Remote:
Spurious links
These shouldn’t be linked.
Authors@R
content-home.html
toc: depth
x = y
Code blocks
# Shouldn't get linked
enlist(5)
# Should get linked
MASS::enlist(5)
# Should get linked because MASS was loaded previously
enlist(5)
#> [[1]]
#> [1] 5
External files
x <- readLines("test.txt")
x
#> [1] "a" "b" "c" "d"
Details tag
This should only be shown when required
Some R code
Tables
Brightness |
Total brightness, total reflectance, spectral intensity |
\[y = x^2\] |
test |
Mathjax
\[f(x) = \dfrac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x-\mu^2)}{2\sigma^2}}\]
Inline equations: \(y=x^2\)
Crayon
cat(crayon::red("This is red"), "\n")
#> This is red
cat(crayon::blue("This is blue\n"), "\n")
#> This is blue
#>
message(crayon::green("This is green"))
#> This is green
warning(crayon::bold("This is bold"))
#> Warning: This is bold
Some text
stop(crayon::italic("This is italic"))
#> Error in eval(expr, envir, enclos): This is italic
Some more text