elementId2Prefix: Use widget with old-style controls.
Description
The rglwidget control is designed to work in the
htmlwidgets framework. Older rgl web pages that
used writeWebGL or knitr used a different
method of linking the controls to the scene. This is a partial
bridge between the two systems.
This function generates Javascript code, so it should be
used in an results = "asis" block in a knitr document.
Details
Because of the order of initialization, this isn't a perfect
bridge. The old-style control will not set the scene to the initial
value from the control, but subsequent changes to the control
should be passed to the widget.