installing ggplot2 package on ubuntu

后端 未结 1 456
鱼传尺愫
鱼传尺愫 2020-12-07 03:32

I\'m on ubuntu precise pangolin running inside a VM, using R 3.1 and Rstudio 0.98.507 and I\'m unable to install ggplot2

Here is the output :

install         


        
1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 03:54

    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.

    0 讨论(0)
提交回复
热议问题