Renders a high-performance, virtualized data grid powered by React to explore datasets, filter dynamically, and generate reproducible queries.
Usage
dtsmartr(
data,
width = NULL,
height = NULL,
elementId = NULL,
datasetName = NULL,
options = dtsmartr_options(),
skip_routing = FALSE
)Arguments
- data
A
data.frameto explore.- width
Widget width. Defaults to
"100%".- height
Widget height. Defaults to
"100vh"(full screen/viewport).- elementId
CSS ID for the widget container.
- datasetName
Custom string name representing the dataset in generated reproducible code. If omitted, automatically extracts the R variable name.
- options
Named list of UI options generated by
dtsmartr_options().- skip_routing
Logical. Internal flag used by
save_dtsmartr()to bypass the automatic re-routing todtsmartr_launch()for large datasets. End users should not set this parameter. Defaults toFALSE.
Value
An object of class htmlwidget (and sub-class dtsmartr) representing
the interactive virtualized grid. In interactive R sessions, this will
display the explorer in the RStudio/Positron Viewer pane or system browser.
Examples
if (interactive()) {
dtsmartr(mtcars, options = dtsmartr_options(hidden_columns = "cyl"))
}
