# 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 params$n random points.

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


rstudio/shinycoreci documentation built on April 11, 2025, 3:17 p.m.