library(shiny)
library(shinydashboard)
library(shinyfio)
ui <- dashboardPage(
dashboardHeader(title = "Table Importing Example"),
dashboardSidebar(),
dashboardBody(
fluidRow(
box(
title = "Data Import",
status = "primary",
solidHeader = TRUE,
width = 12,
dataTableImportWidget("tableImport1"),
tags$hr(),
verbatimTextOutput("debug")
)
)
)
)
server <- function(input, output) {
importedData <- importDataTable("tableImport1", serverRootDirectories = c("wd" = ".."))
output$debug <- renderPrint({
importedData()
})
}
shinyApp(ui = ui, server = server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.