HTML widgets

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

Widgets

Test spacing above widget.

# set seed for reproducible widget id
if (requireNamespace("htmltools", quietly = TRUE)) {
  htmlwidgets::setWidgetIdSeed(42)
}

path1 <- tempfile()
writeLines(letters, path1)
path2 <- tempfile()
writeLines(letters[-(10:11)], path2)

diffviewer::visual_diff(path1, path2)

Test spacing below widget.



Try the pkgdown package in your browser

Any scripts or data that you put into this service are public.

pkgdown documentation built on Dec. 28, 2022, 1:37 a.m.