# NOT RUN {
# This is 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.
# }
# NOT RUN {
makeDependency("rglwidgetClass",
src = "htmlwidgets/lib/rglClass",
script = c("rglClass.src.js",
"utils.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"),
stylesheet = "rgl.css",
package = "rgl",
debugging = nchar(Sys.getenv("RGL_DEBUGGING", "")) > 0)
# }
Run the code above in your browser using DataLab