Description Usage Arguments Details Value Examples
Shiny module Server for file(csv or xlsx) upload.
1 | csvFile(input, output, session, nfactor.limit = 20)
|
input |
input |
output |
output |
session |
session |
nfactor.limit |
nfactor limit to include, Default: 20 |
Shiny module Server for file(csv or xlsx) upload.
Shiny module Server for file(csv or xlsx) upload.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | library(shiny);library(DT);library(data.table);library(readxl);library(jstable)
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
csvFileInput("datafile")
),
mainPanel(
tabsetPanel(type = "pills",
tabPanel("Data", DTOutput("data")),
tabPanel("Label", DTOutput("data_label", width = "100%"))
)
)
)
)
server <- function(input, output, session) {
data <- callModule(csvFile, "datafile")
output$data <- renderDT({
data()$data
})
output$label <- renderDT({
data()$label
})
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.