wrap_linewidth() wrap the output from an R code chunk to a given width, specified by the global option width. Usage is pretty straighforward: set the global width option to a given value, set the knitr chunk option linewidth to getOption("width"), and call wrap_linewidth(). Further details here.
1 |
1 2 3 4 5 6 | ## Not run:
options(width = 60)
knitr::opts_chunk$set(echo = FALSE, fig.align = "center", linewidth = getOption("width"))
plates:::wrap_linewidth()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.