I'm trying to get a web app running on an amazon ubuntu server. I need to install the raster package, but R seems to freeze whenever I try at this point:
$ sudo su - -c "R -e "install.packages('raster')""
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/raster_2.9-5.tar.gz'
Content type 'application/x-gzip' length 971151 bytes (948 KB)
downloaded 948 KB
- installing source package ‘raster’ ...
** package ‘raster’ successfully unpacked and MD5 sums checked
g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c RasterModule.cpp -o RasterModule.o
Can anyone help me?
Thanks in advance!