library(magrittr)
library(tidyverse)
library(mssTablesToExcel)
shinyServer(function(input, output) {
output$message <- renderText({
inFile <- input$xmlFile
if (is.null(inFile))
return("Tables not ready yet...")
else {
extractTables(inFile$datapath) %>% writeToExcel()
return("Tables ready")
}
})
output$downloadData <- downloadHandler(
filename = function() {
"tables.xlsx"
},
content = function(file) {
file.copy("./tables.xlsx",file)
}
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.