We are using aluresViz package of R. This package provide a function plot(). the function has argument interactive = TRUE ,which make it interactive so we want to convert this interactive into html widget .Here we use this method..it not working.
htmlwidgets::saveWidget(p, plotlyoutput, selfcontained = FALSE)