Search code examples
rcran

trying to install R package: ‘ggplot2’ is not available


I can post more data if you let me know what I should run, but here is the error and the version.

> install.packages("ggplot2", dependencies = TRUE)
Warning in install.packages :
  package ‘ggplot2’ is not available
Installing package(s) into ‘/home/johnny4000/R/x86_64-pc-linux-gnu-library/2.12’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘ggplot2’ is not available

and the version

> version               
platform       x86_64-pc-linux-gnu          
arch           x86_64                       
os             linux-gnu                    
system         x86_64, linux-gnu            
status                                      
major          2                            
minor          12.1                         
year           2010                         
month          12                           
day            16                           
svn rev        53855                        
language       R                            
version.string R version 2.12.1 (2010-12-16)

Solution

  • Two options:

    1. Update your verions of R. Version 2.12 is pretty old (this is the option you should go for).
    2. If step 1 isn't possible, then you could try the archived packages, but that may be tricky since you will need all of the associated dependencies.