I just launched a new
1: In system2(cmd0, args, env = env, stdout = outfile, stderr = outfile) :
system call failed: Cannot allocate memory
2: In install.packages("zoo") :
installation of package ‘zoo’ had non-zero exit status
 "/usr/local/lib/R/site-library" "/usr/lib/R/site-library"
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.