inst/doc/knitr-markdown.R

## ----setup, include=FALSE-----------------------------------------------------
library(knitr)

## ----eval=FALSE---------------------------------------------------------------
#  help(package = 'YourPackage', help_type = 'html')
#  # or see a standalone list of vignettes
#  browseVignettes('YourPackage')

## ----hello, results='asis'----------------------------------------------------
if (TRUE) cat('_hello_ **markdown**!', '\n')

## ----test, collapse=TRUE------------------------------------------------------
1+1
10:1
rnorm(5)^2
strsplit('hello, markdown vignettes', '')

## -----------------------------------------------------------------------------
n=300; set.seed(123)
par(mar=c(4,4,.1,.1))
plot(rnorm(n), rnorm(n), pch=21, cex=5*runif(n), col='white', bg='gray')

## ----css, eval=FALSE----------------------------------------------------------
#  options(markdown.html.css = 'path/to/a/custom/style.css')

Try the knitr package in your browser

Any scripts or data that you put into this service are public.

knitr documentation built on Nov. 2, 2023, 5:49 p.m.