htmlwidgets::saveWidget(as.widget(p), "test.html")
Warning message:
‘as.widget’ is deprecated.
Use ‘plot_ly’ instead.
See help(“Deprecated”)
For anyone using the above line of code to save output as html widget. Change the code to…
htmlwidgets::saveWidget(p, "test.html")