Spaces:
Running
Running
Update app.R
Browse files
app.R
CHANGED
|
@@ -101,7 +101,9 @@ trend <- function(){
|
|
| 101 |
|
| 102 |
## Convert to reactive function
|
| 103 |
|
| 104 |
-
trend2 <-
|
|
|
|
|
|
|
| 105 |
|
| 106 |
## Create interactive plot
|
| 107 |
|
|
@@ -117,9 +119,7 @@ output$plot <- renderPlotly({
|
|
| 117 |
}
|
| 118 |
})
|
| 119 |
|
| 120 |
-
|
| 121 |
-
isolate(trend2())
|
| 122 |
-
|
| 123 |
|
| 124 |
})
|
| 125 |
|
|
|
|
| 101 |
|
| 102 |
## Convert to reactive function
|
| 103 |
|
| 104 |
+
trend2 <- eventReactive(input$run,{
|
| 105 |
+
trend()
|
| 106 |
+
})
|
| 107 |
|
| 108 |
## Create interactive plot
|
| 109 |
|
|
|
|
| 119 |
}
|
| 120 |
})
|
| 121 |
|
| 122 |
+
trend2()
|
|
|
|
|
|
|
| 123 |
|
| 124 |
})
|
| 125 |
|