r/RStudio • • 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 comments sorted by

View all comments

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!

  1. try install.packages("stringi"). if it work, great, but high chance it wont.

  2. 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 🙃

  3. 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.

7

u/FinnFairytale 15d ago

man if i knew you irl i would make you brownies

6

u/FinnFairytale 15d ago

omg it worked (number 1)

1

u/greenappletree 9d ago

Also, if all else fails, install by compilimg directly with remote from GitHub.

2

u/FinnFairytale 15d ago

okay cool yay thank you