View source: R/dtsmartr_launch.R
| dtsmartr_launch | R Documentation |
Launches a temporary, lightweight Shiny server in the background and opens the
interactive grid in your default external web browser. This bypasses local
browser origin security policies (CORS) that block file:// resources.
dtsmartr_launch(data = NULL, port = NULL, options = dtsmartr_options())
data |
A |
port |
Optional port number. If |
options |
Named list of UI options generated by |
When data = NULL (default), the Shiny server boots into Wizard Mode. An
interactive interface (powered by the datamods package) allows users to
upload local files (CSV, Excel, SAS, RDS). It also features direct "View"
and "Update" panels to verify and customize columns or variable classes
before loading.
Once a file is successfully uploaded and confirmed, the wizard parses the dataset and feeds it directly into the React-powered virtualized grid explorer.
No return value, called for the side effect of starting a local background Shiny application and opening it in the default web browser.
if (interactive()) {
# 1. Launch wizard mode to upload local files
dtsmartr_launch()
# 2. Launch directly with a dataset
dtsmartr_launch(mtcars)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.