Coupled events with shiny and plotly doesnt work

I am trying to run the example from https://plot.ly/r/shiny-coupled-events/ but I keep getting the error ''x object not found".
Any suggestions are appreciated.

Hey @lgondara

It runs fine for me. Perhaps, try updating plotly:

install.packages("plotly")

or for the development version

if (!require(devtools)) install.packages("devtools")
devtools::install_github("ropensci/plotly")

Thanks @bcd. I figured it out. It was a stupid mistake.