gaborkiss
By:
gaborkiss

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

April 12, 2017 180 views
Getting Started 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 -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

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

Be the first one to answer this question.