<div dir="ltr">I noticed that RcppEigen fails to install on my servers because it requires more than 1gb of memory to compile. Is this expected? Are there any flags or options I could set to trade of some memory for cpu? A short simulation:<div>

<br></div><div><div>> library(RAppArmor)</div><div>> rlimit_as(1e9)<br></div><div>$hardlim</div><div>[1] 1e+09</div><div><br></div><div>$softlim</div><div>[1] 1e+09</div><div><br></div><div>> install.packages("RcppEigen")<br>

</div><div>Installing package into ‘/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0’</div><div>(as ‘lib’ is unspecified)</div><div>trying URL '<a href="http://cran.rstudio.com/src/contrib/RcppEigen_0.3.2.0.tar.gz">http://cran.rstudio.com/src/contrib/RcppEigen_0.3.2.0.tar.gz</a>'</div>

<div>Content type 'application/x-gzip' length 1244321 bytes (1.2 Mb)</div><div>opened URL</div><div>==================================================</div><div>downloaded 1.2 Mb</div><div><br></div><div>* installing *source* package ‘RcppEigen’ ...</div>

<div>** package ‘RcppEigen’ successfully unpacked and MD5 sums checked</div><div>** libs</div><div>g++ -I/usr/share/R/include -DNDEBUG   -I"/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include"  -I../inst/include -fpic  -O3 -pipe  -g  -c RcppEigen.cpp -o RcppEigen.o</div>

<div>g++ -I/usr/share/R/include -DNDEBUG   -I"/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0/Rcpp/include"  -I../inst/include -fpic  -O3 -pipe  -g  -c fastLm.cpp -o fastLm.o</div><div>virtual memory exhausted: Cannot allocate memory</div>

<div>make: *** [fastLm.o] Error 1</div><div>ERROR: compilation failed for package ‘RcppEigen’</div><div>* removing ‘/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0/RcppEigen’</div><div>* restoring previous ‘/home/jeroen/R/x86_64-pc-linux-gnu-library/3.0/RcppEigen’</div>

<div><br></div><div>The downloaded source packages are in</div><div><span class="" style="white-space:pre">       </span>‘/tmp/RtmpGnYaw4/downloaded_packages’</div><div>Warning message:</div><div>In install.packages("RcppEigen") :</div>

<div>  installation of package ‘RcppEigen’ had non-zero exit status</div><div><br></div></div></div>