Obsolete function to write the current scene to a collection of files that contain WebGL code to reproduce
it in a browser. Please use
writeWebGL(dir = "webGL", filename = file.path(dir, "index.html"), template = system.file(file.path("WebGL", "template.html"), package = "rgl"), prefix = "", snapshot = TRUE, commonParts = TRUE, reuse = NULL, font = "Arial", width, height)
Where to write the files.
The filename to use for the main file.
Whether to include a snapshot of the scene, to be displayed in browsers that don't support WebGL, or a specification of the snapshot to use. See details below.
Whether to include parts that would be common to several
figures on the same page. Currently this includes
a reference to and copy of the
The font to use for text.
The (optional) width and height in pixels of the image to display. If omitted,
be formally deprecated in an upcoming release; you should use
rglwidget instead in any new code, and start
migrating old code there.
The remaining documentation has been removed to discourage use of this function.
filename is returned.
TRUE, the output includes a binary copy of
Its source (including
the copyright notice and license for free use) is included in the file named by
system.file("htmlwidgets/lib/CanvasMatrix.src.js", package = "rgl").