Description Usage Arguments Value Examples
View source: R/exampleModule.R
A example shiny module to import a csv file
1 2 3 | exampleModuleUI(id)
exampleModule(input, output, session, stringsAsFactors = TRUE)
|
id |
shiny id |
input |
shiny input |
output |
shiny output |
session |
shiny session |
stringsAsFactors |
logical; Convert strings to factors |
A reactive function returning the imported file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
library(shiny)
library(DT)
if (interactive()){
ui <- fluidPage(
exampleModuleUI("fichier"),
DTOutput("tableau")
)
server <- function(input, output, session) {
data <- callModule(exampleModule,"fichier")
output$tableau <- renderDT({data()})
}
shinyApp(ui, server)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.