Transferred from: http://blog.csdn.net/earl211/article/details/48224939
I have an error when I install Ggplot2 on ubuntu14.04:
[Plain] View plain copy print? error: dependency ' Plyr ' is not available for package ' reshape2 ' * removing '/home/wq/r/x86_64-pc-linux-gnu-library/3.0/reshape2 ' warning in install.packages : installation of package ' reshape2 ' had non-zero exit status error: dependency ' Plyr ' is not available for package ' scales ' * removing '/home/wq/r/x86_64- Pc-linux-gnu-library/3.0/scales ' warning in install.packages : installation of package ' Scales ' had non-zero exit status error: dependencies ' Plyr ', ' reshape2 ', ' scales ' are not available for package ' Ggplot2 ' * removing '/home/wq/r/x86_64-pc-linux-gnu-library/3.0/ggplot2 ' warning in install.packages : installation of package ' Ggplot2 ' had non-zero exit status the downloaded source packages are in '/tmp/rtmpgbmdf6/ Downloaded_packages ' from the beginning, the original is PLYR package is not installed, next install Plyr package, there[Plain]View Plain copy print? Error:dependency ' Plyr ' isn't available for package ' reshape2 ' * removing '/home/wq/r/x86_64-pc-linux-gnu-library/3.0/ Reshape2 ' Warning in Install.packages:installation of package ' reshape2 ' had Non-zero exit status the Downloa Ded source packages is in '/tmp/rtmpgbmdf6/downloaded_packages ' finally I found a solution to download the package and install it myself.
Go to this site Https://launchpad.net/ubuntu/vivid/+package/r-cran-plyr download the R-cran-plyr package, installed by the following code:
[Plain] View plain copy print? SETWD ("/path/where/i/downloaded/the/compressed/file") install.packages ("Plyr", repos=null) NOTE: The first parameter of the install.packages () command should be changed to the name of the compressed package for proper installation ... Intall.packages ("r-cran-plyr_1.8.1.orig.tar.gz", Repos=null) Ggplot2 through the normal installation (Install.packages ("Ggplot2") You're ready.