Problem with installing stringr (and some other) packages in R on Ubuntu 16.04

Hi Everyone!

First of all, the DigitalOcean service is super easy and really happy with the onboarding. I just created a droplet (Ubuntu 16.04) and installed R and Rstudio Server to it.

Everything went okay, but some packages I cannot install and I don’t know why, like dplyr, tidyr, lubridate, while others like quantmod went without error.

The error message is like:

g++ -I/usr/share/R/include -DNDEBUG -I…/inst/include/ -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c Date.cpp -o Date.o

Warning messages: 1: In install.packages(“stringr”) : installation of package ‘stringi’ had non-zero exit status 2: In install.packages(“stringr”) : installation of package ‘stringr’ had non-zero exit status


I googled around on stackoverflow for answers about “apt-get install libssl-dev” and ran that

Can someone help me why I see this issue?

Have a great day, Gabor

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @gaborkiss:

Solved: The memory was the issue, I had to scale up the droplet (and some other dependencies like jvm etc).

View the original comment