knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
dtsmartr is a high-performance, interactive virtualized grid viewer designed to make exploring data in R easy, fast, and reproducible.
You can install the development version of dtsmartr from GitHub:
# install.packages("devtools") devtools::install_github("wagh-nikhil/dtsmartr")
The primary function of the package is dtsmartr(). Simply pass any data.frame to launch the explorer:
library(dtsmartr) # Explore the classic mtcars dataset dtsmartr(mtcars)
You can programmatically configure the default header and row density modes using dtsmartr_options():
# Launch in compact/minimal layout view dtsmartr( data = mtcars, options = dtsmartr_options( header_density = "minimal", row_density = "compact" ) )
If you need a clean, lightweight, metadata-free grid viewer for high performance, you can use the newly added dtsmart_lite() or its alias dtsmartr_lite():
# Forces a compact, clean grid view of a dataset dtsmart_lite(mtcars, title = "Mtcars Lite")
The lightweight mode automatically configures the grid with:
advanced_filter = FALSE (Hides Advanced logical condition rules panel)
allow_export = FALSE (Hides the 'Query Code' button entirely)
* header_summary = FALSE (Collapses headers to compact mode, hiding micro-histograms and completeness bars)
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.