How to Install the R Package Rgl on Ubuntu 9.10, Using R Version 2.12.1

How do I install the latest version of rgl?

(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).

Why do I need SVN to install rgl from github using install_github?

Edited: the Github mirror is up to date again, so all of the methods listed in How do I install the latest version of rgl? should be fine. If the server dies again, you can always use
install.packages() or use SVN.

The install_github() method should no longer require an SVN install.



Related Topics



Leave a reply



Submit