installing ggplot2 package on ubuntu
If you dont have a swap file enabled and run out of ram the OOM (out of memory) killer will normally terminate the offending process. This exhibits itself in the manner described in the OP's question when attempting to install packages. To fix this a swap file should be enabled.
$ dd if=/dev/zero of=/swapfile bs=1024 count=512k
$ mkswap /swapfile
$ swapon /swapfile
You can change attributes for the swap file like swappiness see an example here.
Unable to install ggplot2 on Ubuntu 11.10
You need R (>= 2.14.0) for this version.
So please go and see the instructions at CRAN to upgrade on Ubuntu to the current R and once you have R 2.14.2 up and running (which is a matter of four or five commands, thanks to the magic of apt-get and friends, upgrade to the current ggplot2.
Error in library(ggplot2) : There is no package called 'ggplot2'
When having this issue I would suggest :
- try turning it off and on again
- update R to last version if possible
- remove manually all the folders related to the relevant package and retry the installation
- change your default library location : How do you change library location in R?
Related Topics
How to Insert Missing Observations on a Data Frame
Using Anti_Join() from the Dplyr on Two Tables from Two Different Databases
How to Color Entire Background in Ggplot2 When Using Coord_Fixed
Reshaping Data to Plot in R Using Ggplot2
How to Print Double Quotes (") in R
Pass R Variable to Rodbc's SQLquery with Multiple Entries
Convert Vector to Matrix Without Recycling
How to Split a Data Frame Among Columns, Say at Every Nth Column
Multiple Y Axis for Bar Plot and Line Graph Using Ggplot
How to Save the Wordcloud in R
Purrr:Map and Glm - Issues with Call
R Data.Table Fread Command:How to Read Large Files with Irregular Separators
Ggplot2 Scale_X_Log10() Destroys/Doesn't Apply for Function Plotted via Stat_Function()
Ddply + Summarize for Repeating Same Statistical Function Across Large Number of Columns