How to Install.Packages(): System Call Failed: Cannot Allocate Memory; Installation of Package Had Non-Zero Exit Status

Unable to install.packages(): system call failed: Cannot allocate memory; installation of package had non-zero exit status

I figured out. I was all about the swap value.

There are several web pages that advice to decrease the default swap use in order to speed up Ubuntu. What I did to fix the problem.

In the terminal...

#Know the swap value    
cat /proc/sys/vm/swappiness
10
# Access the swap configuration
gksudo leafpad /etc/sysctl.conf

# Increase the swap usage to 30 (default is 60)
vm.swappiness=30

Then, I rebooted. And installed the packages happily without any problems.

Can't install modules, Cannot allocate memory error?

So I tested doing the exact same under a bigger (t1.small) instance and it worked fine. It looks like R does not play good with EC2 t1.micro instances.

The main difference between those 2 types of instances is that while the t1.micro has 0.6GB memory the t1.small has 1.7GB.

Couldn't test it under t2 type instances, they might perform better.

Warning: system call failed: Cannot allocate memory while installing ‘shiny’ on R 3.1.2

There is clearly something wrong at your end as many of us have shiny on current R installations:

R> R.version.string
[1] "R version 3.1.2 (2014-10-31)"
R> packageDescription("shiny")[1:4]
$Package
[1] "shiny"

$Type
[1] "Package"

$Title
[1] "Web Application Framework for R"

$Version
[1] "0.11"

R>

But from the information you have provided we cannot deduce why you seem to be unable to install this (current) version of shiny in your current R version.



Related Topics



Leave a reply



Submit