DEPRECATED, please see package datamods for similar features.
Usage
chooseDataUI(id, label = "Data", icon = "database", width = "100%", ...)
chooseDataServer(
input,
output,
session,
dataModule = c("GlobalEnv", "ImportFile"),
data = NULL,
name = NULL,
selectVars = TRUE,
selectedTypes = c("continuous", "discrete", "time"),
coerceVars = FALSE,
launchOnStart = TRUE,
size = "m"
)Arguments
- id
Module's id.
- label
Label for button, passed to
actionButton.- icon
Icon to appears on the button, passed to
actionButton.- width
Width of button, passed to
actionButton.- ...
Other arguments passed to
actionButton- input, output, session
standards
shinyserver arguments.- dataModule
Data module to use, choose between
"GlobalEnv"(select addata.framefrom Global environment) or"ImportFile"(import an external file supported byimport).- data
A
data.frameto use by default.- name
Character, object's name to use for
data.- selectVars
Display module to select variables,
TRUEby default.- selectedTypes
Type of variables selected by default in select variables module. Possible types are
"discrete","time","continuous"and"id", by default"id"is discarded.- coerceVars
Display module to coerce variables between different class,
TRUEby default.- launchOnStart
Opens modal window when the application starts.
- size
Size for the modal window.
Value
a reactiveValues containing the data selected under slot data
and the name of the selected data.frame under slot name.
