Error ggplotly: VECTOR_ELT() can only be applied to a 'list', not a 'NULL'
I'm using R 3.3.3 and RStudio 1.0.136 , and the latest versions of all the packages. I get this error with the plotly package > ggiris <- qplot(Petal.Width, Sepal.Length, data = iris, color = Species) > ggplotly(ggiris) Error in grid.Call(L_convert, x, as.integer(whatfrom), as.integer(whatto), : VECTOR_ELT() can only be applied to a 'list', not a 'NULL' This error does not occur anymore after I "print" the ggplot: > ggiris > ggplotly(ggiris) It occurs not only in RStudio, but also in a Shiny app. Any hint ? Note: This more likely occurs with a "fresh" session (just after opening RStudio). >