R : combine and save rgl widgets as a single html file
问题 In R, using the rgl and htmlwidgets libraries, I'm trying to extract an HTML file having a widget with toggle buttons . The following example does what I want in the RStudio Viewer. The HTML export works without the toggle buttons, but fails when the rglwidget includes these buttons. The first part is based on these rgl examples, and the export part on the htmlwidgets manual. library(rgl) open3d() x <- sin(1:100) y <- cos(1:100) z <- -100:100/100 # draw a barrel sids1 <- spheres3d(x, y, z,