Thank you! sir!
I have solved it by uninstalling old R (sudo apt-get install r-base-core) and installing a new version (source code which download from R web) instead.
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.
Thank you! sir!
I have solved it by uninstalling old R (sudo apt-get install r-base-core) and installing a new version (source code which download from R web) instead.
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
Thank you ! sir !
You are right, my R version was really old, I solved the error by using a new R version which downloaded from R web.
Log in to answer this question.
ggplot2 probably couldn't be installed because its dependencies couldn't be installed. What's the output of
sessionInfo()and were you able to see the actual errors encountered during the installation of plyr et al.?The output of
sessionInfo()was listed here:And the compete output of install.packages('ggplot2') as follows:
Copy the complete output message of install.packages('ggplot2'), paste it here: http://pastebin.com/ , and add a link to it here.
I can't get in the web which you described here, so I pasted the complete output message of install.packages ('ggplot2') as follows:
I had the same issue. Updated R to the latest version. Worked well. Thanks to all for the suggestions.