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)?

1 Like

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

It won't let me share my whole script output. I cut out the "trying URL" lines hoping it will send. It keeps saying I can only share 2 links.

install.packages("tidyverse", dependencies = TRUE)
also installing the dependencies ‘ellipsis’, ‘processx’, ‘vctrs’, ‘callr’, ‘hms’, ‘reprex’, ‘rlang’


  There are binary versions available but the source versions are later:
         binary  source needs_compilation
ellipsis  0.1.0 0.2.0.1              TRUE
processx  3.3.0   3.4.1              TRUE
vctrs     0.1.0   0.2.0              TRUE
callr     3.2.0   3.3.1             FALSE
hms       0.4.2   0.5.1             FALSE
reprex    0.2.1   0.3.0             FALSE
rlang     0.3.4   0.4.0              TRUE

  Binaries will be installed

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘processx’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tidyverse’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\corinne.endres\AppData\Local\Temp\1\RtmpSO6JUE\downloaded_packages
installing the source packages ‘callr’, ‘hms’, ‘reprex’

* installing *source* package 'callr' ...
** package 'callr' successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace 'processx' 3.3.0 is being loaded, but >= 3.4.0 is required
ERROR: lazy loading failed for package 'callr'
* removing 'C:/Users/corinne.endres/Documents/R/R-3.4.4/library/callr'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/Users/CORINN~1.END/DOCUME~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\corinne.endres\Documents\R\R-3.4.4\library" C:\Users\CORINN~1.END\AppData\Local\Temp\1\RtmpSO6JUE/downloaded_packages/callr_3.3.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘callr’ had non-zero exit status
* installing *source* package 'hms' ...
** package 'hms' successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'vctrs' 0.1.0 is being loaded, but >= 0.2.0 is required
ERROR: lazy loading failed for package 'hms'
* removing 'C:/Users/corinne.endres/Documents/R/R-3.4.4/library/hms'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/Users/CORINN~1.END/DOCUME~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\corinne.endres\Documents\R\R-3.4.4\library" C:\Users\CORINN~1.END\AppData\Local\Temp\1\RtmpSO6JUE/downloaded_packages/hms_0.5.1.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘hms’ had non-zero exit status
ERROR: dependency 'callr' is not available for package 'reprex'
* removing 'C:/Users/corinne.endres/Documents/R/R-3.4.4/library/reprex'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/Users/CORINN~1.END/DOCUME~1/R/R-34~1.4/bin/x64/R" CMD INSTALL -l "C:\Users\corinne.endres\Documents\R\R-3.4.4\library" C:\Users\CORINN~1.END\AppData\Local\Temp\1\RtmpSO6JUE/downloaded_packages/reprex_0.3.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘reprex’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\corinne.endres\AppData\Local\Temp\1\RtmpSO6JUE\downloaded_packages’

Similar error messages and suggested solutions posted here

Hi @cendres! If you format the output as code, then it won't trigger these anti-spam measures in the forum software. It's a good idea to always format your console output as code since it's more readable that way and avoids various other garbling that can occur. Here's how:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.