Question

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

Posted April 12, 2017 6.5k views
Getting StartedUbuntu 16.04R

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 -DFORTIFYSOURCE=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

edited by ltagliaferri
1 comment

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.

×
1 answer

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

Submit an Answer