Sunday, August 22, 2010

Installing R packages inside R itself.

I am reviewing all my solvers one at a time. The scatterplot page has an option to draw in theee dimensions! this is made possible by the scatterplot3d. Alas, when I clicked to generate the graph, the library was not there since we updated to the latest and greatest version 2.11.1 of R!

Ah ok. Assume you know the package name. Run R with root privileges, sudo R. then issue
install.packages ("scatterplot3d", repos="http://cran.r-project.org/") Then watch R do its intallation procedure.




> install.packages ("scatterplot3d", repos="http://cran.r-project.org/")
trying URL 'http://cran.r-project.org/src/contrib/scatterplot3d_0.3-30.tar.gz'
Content type 'application/x-gzip' length 508829 bytes (496 Kb)
opened URL
==================================================
downloaded 496 Kb


Test if the install was successful: library("scatterplot3d") There should be no error messages.

No comments:

Post a Comment