knitr::opts_chunk$set(collapse = TRUE, comment = "#>")
This vignette tests pkgdown output rendering for several use cases.
Yay[^footnote]
[^footnote]: Including footnotes! 😁
plot(1:10)
x <- readLines("test.txt") x
Multiple paragraphs
First paragraph
Second paragraph
Some R code
1 + 2
| col 1 | col 2 | col 3 | col 4 | |:---------------|:-----------|:-------:|:---------:| | Brightness | Total brightness, total reflectance, spectral intensity | $$y = x^2$$ | test |
$$f(x) = \dfrac{1}{\sqrt{2\pi\sigma^2}} e^{-\frac{(x-\mu^2)}{2\sigma^2}}$$
Inline equations: $y=x^2$
pkgdown:::ruler() cat(rep("x ", 100), sep = "") cat(rep("xy", 100), sep = "")
Valid R code in \preformatted{}
:
mean(a + 1)
R code in R
block:
mean(a + 1)
R code in r
block:
mean(a + 1)
Yaml
yaml: [a, 1]
Non-R code in \preformatted{}
yaml: [a, b, c]
cat(cli::col_red("This is red"), "\n") cat(cli::col_blue("This is blue\n"), "\n") message(cli::col_green("This is green")) warning(cli::style_bold("This is bold"))
Some text
stop(cli::style_italic("This is italic"))
Some more text
Single-line quote about something miscellaneous.
| Flush | 1 space indent | 2 space indent | 3 space indent
There should however be no bug here!
blablablabla
1 + 1
Should be "cool" heading below
Stuff
blop
something nice
plot(1:42)
This tab should be active
Hello!
Bonjour!
Guten tag.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.