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

Tables with DT::datatable() are not rendering correctly in pkgdown.

Here's a bunch of different things I've tried.

DT

Currently DT tables fill the entire container, but the internal columns do not.

library(DT)
datatable(iris)

DT - filter

Adding filter fixes the column width issue. Would be nice if columns widths were fixed without this.

Issue filed at https://github.com/rstudio/DT/issues/563.

Hint from from https://saurfang.github.io/pkgdown.example/reference/datatable.html

datatable(iris, filter = 'top')


jayhesselberth/widgetdown documentation built on May 7, 2019, 8:43 a.m.