Ifeanyi commited on
Commit
46ca90b
·
1 Parent(s): 3000c76

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +4 -4
app.R CHANGED
@@ -101,7 +101,9 @@ trend <- function(){
101
 
102
  ## Convert to reactive function
103
 
104
- trend2 <- reactive(trend())
 
 
105
 
106
  ## Create interactive plot
107
 
@@ -117,9 +119,7 @@ output$plot <- renderPlotly({
117
  }
118
  })
119
 
120
- input$run
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