Installing Ggplot2 Package on Ubuntu

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



Leave a reply



Submit