This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Unable to locate libraries in latest version of R 4.0.0

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

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.

@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"

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.

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 answers

No answers yet.

Log in to answer this question.