Download multiple csv files in a zipped folder in Shiny
Date : March 29 2020, 07:55 AM
this will help The top solution still wasn't working for me. I was working in RStudio Server on a Linux server. The problem was that RStudio couldn't automatically locate the path to the zip executable. I had to manually specify it. In the command line, which zip revealed to me /usr/bin/zip. So, I just had to set the R_ZIPCMD environment variable at the top of my code. Sys.setenv(R_ZIPCMD="/usr/bin/zip")
|
R shiny: download multiple .csv files
Date : March 29 2020, 07:55 AM
hop of those help? You forgot to put quotes"" in the qmethod argument. Your download handler for classify should be this: output$download_classify <- downloadHandler(
filename = function() {
paste0("rating", ".csv")
},
content = function(file) {
write.table(
result()$rating,
file,
sep = ";",
col.names = NA,
qmethod = "double"
)
}
)
|
Uploading multiple files in Shiny, process the files using lapply, rbind the results and return a download
Date : March 29 2020, 07:55 AM
like below fixes the issue the problem is when you are passing inFile to lapply you are actually passing only the first column containing the filename. Instead you'll need to passinFile$datapath. The lapply should be like this: files3 = lapply(inFile$datapath, function(y){
JSON_csv = read.csv(y, header = TRUE)
lastrow = nrow(JSON_csv)
shift = function(x, n){
c(x[-(seq(n))], rep(NA, n))
}
JSON_csv$companyID1 = shift(JSON_csv$companyID1, 1)
JSON_csv = JSON_csv[-lastrow, ]
JSON_csv
}
|
Uploading zip with multiple files into a shiny application
Tag : r , By : user107506
Date : March 29 2020, 07:55 AM
wish helps you It should be files <- unzip(input$upload$name, list = TRUE) instead of unzip(input$upload, list = TRUE)
|
Download multiple csv files with one button (downloadhandler) with R Shiny
Tag : r , By : dnyaneshwar
Date : March 29 2020, 07:55 AM
|