Installing ggplot "ggplot package unavailable" and "indexes out of bounds"
$ R R version 2.12.2 (2011-02-25) Platform: i486-pc-linux-gnu (32-bit) > install.packages("ggplot") Warning message: In getDependencies(pkgs, dependencies, available, lib) : package 'ggplot' is not available > install.packages("ggplot", dep="T") Error in apply(available[p1, dependencies, drop = FALSE], 1L, function(x) paste(x[!is.na(x)], : subscript out of bounds In addition: Warning message: In getDependencies(pkgs, dependencies, available, lib) : package 'ggplot' is not available > install.packages("ggplot", dep="T", type="source") Error in apply(available[p1, dependencies, drop = FALSE], 1L, function(x) paste(x[!is.na(x)], : subscript out of bounds In addition: Warning message: In getDependencies(pkgs, dependencies, available, lib) : package 'ggplot' is not available How to install ggplot ?
You have the wrong package name - now it's ggplot2 after a major rewrite of Hadley a few years ago. I assume that the old ggplot package was removed from CRAN.
install.packages("ggplot2", dependencies = TRUE) This is what I get:
R> install.packages("ggplot2", dependencies = TRUE) Installing package(s) into '/home/gavin/R/libs' (as 'lib' is unspecified) trying URL 'http://cran.uk.r-project.org/src/contrib/ggplot2_0.8.9.tar.gz' Content type 'application/x-gzip' length 2074749 bytes (2.0 Mb) opened URL ================================================== downloaded 2.0 Mb * installing *source* package 'ggplot2' ... ** R ** data ** moving datasets to lazyload DB ** inst ** help *** installing help indices ** building package indices ... ** testing if installed package can be loaded * DONE (ggplot2) The downloaded packages are in '/tmp/RtmpPcn8bl/downloaded_packages' As an update, if someone encounters problems when starting ggplot or GGally, I had this error:
"Error: loading package or namespace failed for ggplot2 in
loadNamespace(i, c(lib.loc,.libPaths()), versionCheck = vI[[i]]):no package named" color space "Error: ggplot2 could not be downloaded package
After I set the color space, ggplot2 worked fine. I assume that the color space is in the call, but not in the dependencies listed.
I am using R version 3.4.4 for windows 36-bit. I can not install "ggbiplot". It is said that this is not available for version R 3.4.4. I also try this in R 3.6.1. still unavailable. Why is this happening? please, help. thank you