Run the Shiny app
Arguments
- datapath
Full path to a single
.csvor.rdsdata file.- ...
Arguments passed to
shiny::runApp()
Details
If a datapath is provided, the app will attempt to automatically load the
specified dataset on startup. This is achieved by setting an internal option
(options(aNCA.datapath = datapath)), which the app then reads.
This pre-loaded dataset can be overwritten; if a new file is uploaded using
the widget within the app, it will replace the initial data for the current session.
If datapath is NULL (default), the app will launch without pre-loading any
data, and a file must be uploaded manually within the app.
Examples
# \donttest{
# Show the packaged example path (safe non-interactive snippet)
adnca_path <- system.file("shiny/data/example-ADNCA.csv", package = "aNCA")
adnca_path
#> [1] "/home/runner/work/_temp/Library/aNCA/shiny/data/example-ADNCA.csv"
# To actually launch the app, run interactively:
if (interactive()) {
run_app(datapath = adnca_path)
}
# }