# Coupled events with shiny and plotly doesnt work

**URL:** <https://community.plotly.com/t/coupled-events-with-shiny-and-plotly-doesnt-work/3838>\
**Category:** Plotly R\
**Created:** [April 4, 2017, 11:42pm UTC](https://community.plotly.com/t/coupled-events-with-shiny-and-plotly-doesnt-work/3838 "2017-04-04T23:42:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgondara](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@lgondara](https://community.plotly.com/u/lgondara)\
**Post date:** [April 4, 2017, 11:42pm UTC](https://community.plotly.com/t/coupled-events-with-shiny-and-plotly-doesnt-work/3838/1 "2017-04-04T23:42:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bcd](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcd](https://community.plotly.com/u/bcd)\
**Post date:** [April 13, 2017, 12:22pm UTC](https://community.plotly.com/t/coupled-events-with-shiny-and-plotly-doesnt-work/3838/2 "2017-04-13T12:22:05Z")

</div>

Hey @lgondara

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

`install.packages("plotly")`

or for the development version

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

```

---

<div class="post-metadata">

**Author:** ![lgondara](https://avatars.discourse-cdn.com/v4/letter/l/ee59a6/32.png) [@lgondara](https://community.plotly.com/u/lgondara)\
**Post date:** [April 13, 2017, 1:45pm UTC](https://community.plotly.com/t/coupled-events-with-shiny-and-plotly-doesnt-work/3838/3 "2017-04-13T13:45:54Z")

</div>

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