0
0
Entering edit mode
2.3 years ago

Hi,

I recently installed R version to R-4.0.0, after launching R Studio and running a script I am unable to find the libraries that were installed in the previous version of R-3.5. Please let me know if its possible to locate and set these libraries whenever R is launched or do I have again re-install all the libraries.

I tried using .libPaths("your/path"), however I have to set this everytime I work with R.

Kindly assist me with this.

Thank you,

Toufiq

R library missing r studio installation • 1.4k views
1
Entering edit mode

Are you using system libraries or personal libraries? Check if new version is pushing libraries to a new location. Even if you locate previous R version libraries, you may have to recompile most, if not all, of them, for version 4.

0
Entering edit mode

Please find the new and old paths as given below.

Version 4.0.0

.libPaths()

[1] "/Users/mtoufiq/Library/R/4.0/library"
[2] "/Library/Frameworks/R.framework/Versions/4.0/Resources/library"


Version 3.5

.libPaths()

[1] "/Users/mtoufiq/Library/R/3.5/library"
[2] "/Library/Frameworks/R.framework/Versions/3.5/Resources/library"

1
Entering edit mode

You are at a new version of R, agreeing with cpad0112, you will need to recompile everything, otherwise you may (or definitely) will run into compatibility issues sooner or later.

1
Entering edit mode

Recently I had similar issue, then I had to recompile everything. I just took the list of packages from the existing library. Here you can use your own library path

pkgs <- rownames(installed.packages(lib.loc = "/Users/mtoufiq/Library/R/3.5/library"))


and compile everything as suggested by ATPoint

BiocManager::install(pkgs, type = "source", checkBuilt = TRUE)

0
Entering edit mode

Thank you very much @Prakash.