exampleModuleUI: exampleModuleUI and exampleModule

Description Usage Arguments Value Examples

View source: R/exampleModule.R

Description

A example shiny module to import a csv file

Usage

1
2
3
exampleModuleUI(id)

exampleModule(input, output, session, stringsAsFactors = TRUE)

Arguments

id

shiny id

input

shiny input

output

shiny output

session

shiny session

stringsAsFactors

logical; Convert strings to factors

Value

A reactive function returning the imported file

Examples

 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)

VoisinneG/flowR documentation built on June 1, 2021, 6:42 p.m.