# For PDF output, change the header to have "output: pdf_document".
#
# Note that due to an issue in rmarkdown, the default value of a parameter in
# the header cannot be `NULL`, so I used a default of `NA` for the default value
# of `n`.
# The `params` object is available in the document.
params$n

A plot of r params$n random points.

plot(rnorm(params$n), rnorm(params$n))


BenjaminLouis/wimpress documentation built on July 12, 2019, 8:07 a.m.