Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to install ggplot2 on Ubuntu 11.10

I am getting the following error when trying to install ggplot2:

> install.packages("ggplot2")
Installing package(s) into ‘/home/dodo/R/x86_64-pc-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk interface ... done
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘ggplot2’ is not available (for R version 2.13.1)

I am running Ubuntu 11.10 (oneiric).

Any help is appreciated.

like image 944
DodoD Avatar asked Mar 08 '12 00:03

DodoD


3 Answers

You need R (>= 2.14.0) for this version.

So please go and see the instructions at CRAN to upgrade on Ubuntu to the current R and once you have R 2.14.2 up and running (which is a matter of four or five commands, thanks to the magic of apt-get and friends, upgrade to the current ggplot2.

like image 54
Dirk Eddelbuettel Avatar answered Sep 27 '22 17:09

Dirk Eddelbuettel


ggplot2-0.9.0 has an explicit dependency on R >= 2.14 (and an implicit one of R >= 2.14.1). Thus it can not be installed in R version 2.13.1. Perhaps you can get the previous version (0.8.9) from the archives and install that.

like image 45
Brian Diggs Avatar answered Sep 27 '22 17:09

Brian Diggs


You need to install a version that is appropriate to your old version of R or you need to upgrade. To go the first route, you should find a version of ggplot2 in the Archives and then install from source (which is I believe the default for Linux). Perhaps try the UCLA CRAN mirror:

http://cran.stat.ucla.edu/src/contrib/Archive/ggplot2/ggplot2_0.8.9.tar.gz

like image 40
IRTFM Avatar answered Sep 27 '22 17:09

IRTFM