wrap_linewidth: Wrap output to a given width

Description Usage Examples

View source: R/utils.R

Description

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.

Usage

1

Examples

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)

ellessenne/uolvid documentation built on July 19, 2020, 8:37 a.m.