shinyDataset {crunchy} | R Documentation |
Load a dataset for a Shiny session
Description
This function wraps crunch::loadDataset()
in a
shiny::reactive()
object for use in a Shiny app. It also ensures
that the current user is authenticated with Crunch before proceeding.
Usage
shinyDataset(...)
Arguments
... |
Arguments passed to |
Value
A Shiny reactive
object.
Examples
## Not run:
shinyServer(function(input, output, session) {
ds <- shinyDataset("Your dataset name")
freqs <- reactive({
fmla <- as.formula(paste("~", input$varname))
crtabs(fmla, data=ds())
})
})
## End(Not run)
[Package crunchy version 0.3.3 Index]