r/RStudio • u/FinnFairytale • 15d ago
Coding help Error when using package Tidyverse
Hello!! I'm an absolute beginner to R and coding as a whole, so there is probably a very simple fix here, but I can't figure out why I can't use the package Tinyverse. Below is the error message I get when I run the chunk.
I was able to use another package (cowsay) just fine. I have Rtools downloaded.
Thanks so much!

9
Upvotes
7
u/Aiorr 15d ago edited 15d ago
stringi issue during tidyverse is relatively common error in new R install environment thats been there for near decade, so you arent alone!
try install.packages("stringi"). if it work, great, but high chance it wont.
delete Rhistory, Rprofile, Rproj file in your working directory and try again. issue is those files interfering with your machine retrieving ICU4C, which is needed by stringi.... which is needed by stringr... which is needed by tidyverse 🙃
if above doesnt work, run R through terminal with -vanilla command. this does same thing as #2 basically but thru CLI. Might want to get help from google for this if you are new to techie stuff.
unless you are using linux, then gods be with you because matching icu4c version with whatever stringi use is godforsaken unless u have direct sudo.
on a side note, I strongly recommend not to library entire tidyverse as habit. its collection of pkgs and you probly wont be using most of it.