首页 > 解决方案 > 如何从网络而不是这个数据表呈现表格?

问题描述

我通过此链接https://www.dropbox.com/s/k94brqtrp5thch3/005.txt?dl=0将一个太大的表格存储在投递箱中;我需要以下面的代码显示虹膜数据的方式访问此表。我的意思是如何在这段代码中读取我的大 .txt 文件而不是 Iris?

ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody(

              fluidRow(
              tabBox(width = 12, height = NULL,

                tabPanel("Data", value=2,

                         fluidRow(

                           column(width = 4,  box(title = "Iris", width = NULL, solidHeader = FALSE, dataTableOutput("dat1")))
                )
              )
    )
  )))

server <- function(input, output) {

  output$dat1 <- renderDataTable({datatable(iris)})


}

shinyApp(ui, server)

标签: datatableshinyshinydashboardshiny-server

解决方案


推荐阅读