knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
dtsmartr supports flexible column presentation settings for clear and dynamic data display.
Columns can be resized dynamically inside the browser: - Hover over the right edge of any column header to reveal a blue drag handle. - Drag left or right to change column widths to fit your data.
When columns contain long strings (e.g. sentences, address logs, or uppercase category labels), the grid wraps text automatically onto multiple lines: - The virtualized grid adjusts row heights dynamically. - Alignment remains perfect, and viewport performance stays smooth.
You can set columns to be hidden by default on load using the hidden_columns parameter in dtsmartr_options() (try using the Column Picker in the live widget below to show them!):
library(dtsmartr) dtsmartr( mtcars, options = dtsmartr_options( hidden_columns = c("mpg", "cyl") ) )
By default, column headers show a Kaggle-style summary micro-dashboard (histograms for numbers, stacked completeness bar charts for categories, evolutionary data ranges). You can turn this off to render a compact layout:
# Collapses headers to standard compact labels dtsmartr( mtcars, options = dtsmartr_options( header_summary = FALSE ) )
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.