Unable to locate libraries in latest version of R 4.0.0
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
ADD COMMENT
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.

ADD REPLY
0
Entering edit mode

@cpad0112, thank you for your message.

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"
ADD REPLY
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.

ADD REPLY
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)
ADD REPLY
0
Entering edit mode

Thank you very much @Prakash.

ADD REPLY

Login before adding your answer.

Traffic: 1336 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6