R Package Installation Error error:dependency ' Plyr ' is not available for packages ' reshape2 '

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.