How do I install the latest version of rgl?

Solution 1:

(This has been updated since rgl moved from R-forge to Github).

The simplest way is to install from Github, using

devtools::install_github("dmurdoch/rgl")

This installs a version that may be a few hours old. It does require that you have the tools for a source install; rgl has a lot of code that needs to be compiled. Those tools are available for Windows at https://cloud.r-project.org/bin/windows/Rtools/. Full OSX installs require XCode and XQuartz and perhaps some other packages. Linux users will need to install a number of libraries as well. Both OSX and Linux support minimal installs that only work with rglwidget().

You can also check out from Github using

git clone https://github.com/dmurdoch/rgl.git

Then you can install it using

R CMD INSTALL rgl

(provided all the prerequisites exist).