knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
cssunits allows you to use the R units library with CSS and LaTeX widths.
Install from GitHub with:
# install.packages("devtools") devtools::install_github("hughjonesd/cssunits")
library(cssunits) library(units) install_css_units() set_units(72, "pt") + set_units(1, "in")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.