Error loading packages - 'stringr' - cannot use package choroplethr


#1

library(choroplethr)
Loading required package: acs
Loading required package: stringr
Error: package or namespace load failed for ‘stringr’ in inDL(x, as.logical(local), as.logical(now), …):
unable to load shared object ‘C:/Users/-/Documents/R/win- library/3.4/stringi/libs/x64/ stringi.dll’:
LoadLibrary failure: %1 is not a valid Win32 application.


I have a strange feeling that a function I ran to take a substring from the right of a string of characters, might have influenced this ‘stringr’ but I believe the function was called substringRight, not stringr. Still that makes me nervous that the names are similar.

I just wanted to mention that I have successfully been using a number of R packages on the same computer for several months now. This is the first time I have run into this error. I have 8GB i5 64 bit. It is preventing me from using choroplethr and libridate and other packages.


#2

I think that installing or upgrading stringi should solve this issue for you. I checked the choroplethr repo and it looks like it depends on stringr, in turn stringr depends on stringi.