By mkahler5012
Hello, I am trying to install shiny and having issues with its dependencies. My server is an Ubuntu 14.04 using nginx as the web server. When I run the statement sudo su - -c “R -e "install.packages(‘shiny’, repos=‘http://cran.rstudio.com/’)"” at the command line, it starts to work. Here is the info that is returned when attempting to install.
The downloaded source packages are in ‘/tmp/RtmpduxxBi/downloaded_packages’ Warning messages: 1: In install.packages(“shiny”, repos = “https://cran.rstudio.com/”) : installation of package ‘Rcpp’ had non-zero exit status 2: In install.packages(“shiny”, repos = “https://cran.rstudio.com/”) : installation of package ‘httpuv’ had non-zero exit status 3: In install.packages(“shiny”, repos = “https://cran.rstudio.com/”) : installation of package ‘shiny’ had non-zero exit status
So it appears two of the dependencies (Rcpp and httpuv), so far, while unpacking are not installing.
Does anyone know what may be causing this and even better, how to fix this issue? Thank you in advance for any solutions!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @homerhanumat:
It looks like you ran out of memory while compiling some of the C code for Rcpp. You should temporarily increase the size of your droplet. I have found that 1G is not enough memory to install all of my favorite R packages, but the 2G size will do. Alternatively, you can make a swap file. For that, follow the direction here; http://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/
I chose the latter option, and it worked fine.
Regards, Homer
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.