Output Rendering
Subtitle is skipped from the TOC
Author is skipped from the TOC
Date is skipped from the TOC
Source:vignettes/test/rendering.Rmd
rendering.Rmd
This vignette tests pkgdown output rendering for several use cases.
Footnotes
Yay1
Details tag
This should only be shown when required
Multiple paragraphs
First paragraph
Second paragraphSome R code
1 + 2
#> [1] 3
Tables
col 1 | col 2 | col 3 | col 4 |
---|---|---|---|
Brightness | Total brightness, total reflectance, spectral intensity | test |
Code
Line width
pkgdown:::ruler()
#> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
#> 12345678901234567890123456789012345678901234567890123456789012345678901234567890
cat(rep("x ", 100), sep = "")
#> x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
cat(rep("xy", 100), sep = "")
#> xyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxyxy
Should be highlighted
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
Crayon
cat(cli::col_red("This is red"), "\n")
#> This is red
cat(cli::col_blue("This is blue\n"), "\n")
#> This is blue
#>
message(cli::col_green("This is green"))
#> This is green
warning(cli::style_bold("This is bold"))
#> Warning: This is bold
Some text
stop(cli::style_italic("This is italic"))
#> Error in eval(expr, envir, enclos): This is italic
Some more text
Quoted text
Single-line quote about something miscellaneous.
Flush
1 space indent
2 space indent
3 space indent
1 space indent
2 space indent
3 space indent
Tabsets
Tabset without pills
something nice
plot(1:42)
This tab should be active