Commit da75bf78 authored by Aqeel Padaria's avatar Aqeel Padaria

dashboard troubleshoot 3 - add openxlsx specification and comment out plot creation

parent 54e840c8
......@@ -481,19 +481,19 @@ server = shinyServer(
mainout$X2 <- c(datasetName, input$metric, input$timefactor, input$testsplit, input$error, input$var)
}
wb <- createWorkbook()
wb <- openxlsx::createWorkbook()
addWorksheet(wb, "Main Information")
writeData(wb, sheet = "Main Information", x = mainout, colNames = FALSE, rowNames = FALSE)
addWorksheet(wb, "Original Data")
writeData(wb, sheet = "Original Data", x = original, colNames = TRUE, rowNames = FALSE)
addWorksheet(wb, "Forecast")
writeData(wb, sheet = "Forecast", x = newvals, colNames = TRUE, rowNames = FALSE)
openxlsx::addWorksheet(wb, "Main Information")
openxlsx::writeData(wb, sheet = "Main Information", x = mainout, colNames = FALSE, rowNames = FALSE)
openxlsx::addWorksheet(wb, "Original Data")
openxlsx::writeData(wb, sheet = "Original Data", x = original, colNames = TRUE, rowNames = FALSE)
openxlsx::addWorksheet(wb, "Forecast")
openxlsx::writeData(wb, sheet = "Forecast", x = newvals, colNames = TRUE, rowNames = FALSE)
p <- getPlot()
print(p)
addWorksheet(wb, "Plot")
insertPlot(wb, "Plot", width=8, height = 4, fileType = "png", units = "in")
# p <- getPlot()
# print(p)
# openxlsx::addWorksheet(wb, "Plot")
# openxlsx::insertPlot(wb, "Plot", width=8, height = 4, fileType = "png", units = "in")
openxlsx::saveWorkbook(wb,file, overwrite = T)
#write.csv(x = mainout, file = file)
......@@ -571,7 +571,7 @@ ui = #ui.R
uiOutput("dataOptions"),
selectInput("error",
label = "Choose accuracy error's metric",
label = "Choose accuracy error metric",
choices = list("Standard MAPE","Adjusted MAPE","Weighted MAPE"),
selected = "Adjusted MAPE"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment