A simple call of ggplotly() on a ggplot2 object makes RStudio Crash. The simple code is started below.
library(plotly)
library(tidyverse)
iris.ggplot <- ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) +
geom_point()
print(iris.ggplot)
ggplotly(iris.ggplot)