if (FALSE) {
# This is a slightly simplified version of the code used to
# produce one of the dependencies for rglwidget().
# It writes to the system library copy of rgl so
# has been marked not to run in the example code.
makeDependency("rglwidgetClass",
src = "htmlwidgets/lib/rglClass",
script = c("rglClass.src.js",
"utils.src.js",
"buffer.src.js",
"subscenes.src.js",
"shaders.src.js",
"textures.src.js",
"projection.src.js",
"mouse.src.js",
"init.src.js",
"pieces.src.js",
"draw.src.js",
"controls.src.js",
"selection.src.js",
"rglTimer.src.js",
"pretty.src.js",
"axes.src.js",
"animation.src.js"),
stylesheet = "rgl.css",
package = "rgl",
debugging = isTRUE(as.logical(Sys.getenv("RGL_DEBUGGING", "FALSE"))))
}
Run the code above in your browser using DataLab