I am working in an environment without internet access. Hence, I have transferred TIdyverse-1.2.1.zip using thumb drive to my pc for installation. However, the following error popped out when i try to load TIdyverse after installation:
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 ‘broom’
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.6.1
Do anyone know how to resolve this? Thank you in advance.
Packages, like tidyverse can depend on other packages. If those are not already installed, they are fetched from a CRAN repository and installed as part of the depending package installation.
The broom package is simply the first of many tidyverse dependencies
A less hair pulling experience would be to use an online machine to download all your desired libraries to the default directory and then copy that via thumbdrive to your un-connected machine.
You can follow the advice from the vignette to create a local CRAN in a folder, download those into it. Then after moving the whole folder into you offline server, you would configure install.packages to use you local CRAN on your file system.
install.packages(pkgs,
repos = paste0("file:///", pth_to_local_cran),
type = "source") # win.bin for windows if you download them
Thank you for the advice.
I have installed all the packages, and the following error pop out instead:
Error: package or namespace load failed for ‘tidyverse’ in rbind(info, getNamespaceInfo(env, "S3methods")):
number of columns of matrices must match (see arg 2)
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.6.1
I am unable to use tidyverse when i tried to load it. Is there anyway to resolve this?
So you need for that particular analysis all the tidverse?
You may have already installed what you need. I had once an error installing it. Long time, very expensive. In your circumstances I would go straight to what you need. Specific packages.
Extra dependencies can make a nightmare without internet...