I work with Windows and RStudio and cannot load tidyverse. I'm unsure what's causing the error and need help. This is the error message that I keep getting in RStudio:
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’
I've tried all the obvious troubleshooting such as: updating RStudio (v 1.4.1717), R (v4.1.0) and all packages (including tidyverse and dplyr); restarting my laptop, RStudio and beginning a new session to no avail. I also double-checked the internet is connected and altered the primary CRAN repository to select one that's nearer to my current location, but this did not work either.
The answer is in this message, as suggested install.packages("stringi")
[quote="RShep, post:1, topic:110184"]
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘stringi’
[/quote
Thanks. I had initially tried that and closed down RStudio after ~15 minutes with the console still very active. I thought there was an error because the packages are usually quick to install and I was unsure if the package was truly installing.
I then tried re-installing the 'stringi' and left RStudio for an hour or so whilst I caught up on other tasks. This time the package finished installing. Tidyverse loaded without any issues afterwards.