Report this

What is the reason for this report?

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

Posted on April 12, 2017

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

library(stringr)

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



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.