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
Texture in Barplot for 7 Bars in R
Problems Using Foreach Parallelization
How to Change the Na Color from Gray to White in a Ggplot Choropleth Map
Dynamic Height and Width for Knitr Plots
How to Get Parameters from Config File in R Script
How to Display Widgets Inline in Shiny
How to Convert Date and Time from Character to Datetime Type
Colorize Clusters in Dendogram with Ggplot2
Plotting Multiple Curves Same Graph and Same Scale
Calculating the Difference Between Consecutive Rows by Group Using Dplyr
How to Plot Logit and Probit in Ggplot2
Using Geo-Coordinates as Vertex Coordinates in the Igraph R-Package
How to Leave the R Browser() Mode in the Console Window
Forcing R Output to Be Scientific Notation with at Most Two Decimals
Wrap Long Text in Kable Table Column
Show That Shiny Is Busy (Or Loading) When Changing Tab Panels