Commit 86d84720 by Jan Wijffels

use try block

parent 056468c2
...@@ -134,7 +134,7 @@ observeEvent(input$uiInput_refresh_counter, { ...@@ -134,7 +134,7 @@ observeEvent(input$uiInput_refresh_counter, {
output$uiOutput_timeseries <- renderDygraph( output$uiOutput_timeseries <- renderDygraph(
plot_timeseries(x)) plot_timeseries(x))
try({
mydata <- subset(x, phenomena_id %in% head(input$uiInput_phenomena, 1)) mydata <- subset(x, phenomena_id %in% head(input$uiInput_phenomena, 1))
if(all(c("citizen", "official") %in% mydata$type) & input$uiInput_aggregationlevel %in% c("min", "hour", "day", "week", "month")){ if(all(c("citizen", "official") %in% mydata$type) & input$uiInput_aggregationlevel %in% c("min", "hour", "day", "week", "month")){
## DATE/REF/SENSOR ## DATE/REF/SENSOR
...@@ -193,6 +193,8 @@ observeEvent(input$uiInput_refresh_counter, { ...@@ -193,6 +193,8 @@ observeEvent(input$uiInput_refresh_counter, {
plot_PI_CI plot_PI_CI
}) })
} }
})
}) })
``` ```
......
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