Installation of packages ‘stringr’ and ‘stringi’ had non-zero exit status Installation of packages ‘stringr’ and ‘stringi’ had non-zero exit status r r

Installation of packages ‘stringr’ and ‘stringi’ had non-zero exit status


Sir, I tried this:

install.packages("stringi", dependencies=TRUE, INSTALL_opts = c('--no-lock'))install.packages("stringr", dependencies=TRUE, INSTALL_opts = c('--no-lock'))

and it worked for me, give it a try!


u/Joyvalley's answer to a similar question worked. Just run R as superuser and install stringi then:

sudo -i R


In my case only combining of two options worked:

running as admin and then:

install.packages("stringi", dependencies=TRUE, INSTALL_opts = c('--no-lock'))