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.
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.