Last active
April 2, 2024 09:21
Revisions
-
stephlocke revised this gist
Apr 17, 2017 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,13 +16,11 @@ ui <- fluidPage( ) server <- function(input, output) { mycsvs<-reactive({ rbindlist(lapply(input$csvs$datapath, fread), use.names = TRUE, fill = TRUE) }) output$count <- renderText(nrow(mycsvs())) } shinyApp(ui = ui, server = server) -
stephlocke renamed this gist
Apr 17, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
stephlocke created this gist
Apr 17, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ library(shiny) library(data.table) ui <- fluidPage( titlePanel("Multiple file uploads"), sidebarLayout( sidebarPanel( fileInput("csvs", label="Upload CSVs here", multiple = TRUE) ), mainPanel( textOutput("count") ) ) ) server <- function(input, output) { mycsvs<-reactive({ rbindlist(lapply(input$csvs$datapath, fread), use.names = TRUE, fill = TRUE) }) output$count <- renderText(nrow(mycsvs())) } shinyApp(ui = ui, server = server)