Hello everyone

I tried to install ggplots packages of R in Ubuntu server, but there were some errors which displayed as follows:

    Warning messages:
    1:In install.packages("ggplot2"):
    Installation of package 'plyr' had non-zero exit status
    
    2: In install.packages("ggplot2"):
    Installation of package 'reshape2' had non-zero exit status
    
    3: In install.packages("ggplot2"):
    Installation of package 'scales' had non-zero exit status
    
    4: In install.packages("ggplot2"):
    Installation of package 'ggplot2' had non-zero exit status

Then I tried to use ggplot2 through command:

    library('ggplot2')

But terminal told me that 

    Error in library (ggplot2): there is no package called 'ggplot2'

I have found many information about this problem on internet, but no available ways find and error was error.

If you have some suggestion, please tell me.

Thanks for your help.

It seems that you are using a very old version R; so, even if you succeed in installing ggplot2, be aware that it may not work correctly afterwards. In any case, to solve the issue you should install Rcpp separately - e.g. `sudo apt-get install r-cran-rcpp`
