Trying to load tidyverse package and get it to run

I am trying to run an R script that uses data from an oracle table. I have ROracle installed and it appears to be working. When the script tries to load the library(tidyverse), I get this error

#Loading the libraries I need

library(ROracle)
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
there is no package called ‘rlang’

I then install.packages("rlang") and run the script again and get this error
#Loading the libraries I need

library(ROracle)
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘hms’

So I then install.packages("hms"). I run the script again, and get the first error again. And it keeps going in this cycle and I cannot get tidyverse to run.

Any help?!

Hi @cendres, welcome to the community!

It looks like you have some missing dependencies, possibly from a problem that didn't cause an error the first time you installed the tidyverse package. Can you try re-installing using install.pacakges("tidyverse", dependencies = TRUE)?

Hi Jim89,

No it did not work. The package loaded but I am still getting the same errors. Could it be something wrong with the PATH or the user environmental variable? or is that way off?

That seems unlikely, are you able to share the full output you get when you re-install? It's possible that the installation is not going wrong enough to cause a major error, but not installing everything you expect it to.

1 Like