Skip to content
Prev 14132 / 15075 Next

adjusting .libPaths

Hi,

In R 4.2, when I look at .libPaths() from within the standard R gui, I 
see:

.libPaths()
[1] "/Users/ken/Library/R/x86_64/4.2/library"
[2] "/Users/ken/Library/R/4.1/library"
[3] "/Library/Frameworks/R.framework/Versions/4.2/Resources/library"

 From a terminal, I get
[1] "/Users/ken/Library/R/4.1/library"
[2] "/Library/Frameworks/R.framework/Versions/4.2/Resources/library"

The old 4.1 directory, I suspect, should not be there.  From 
Sys.getenv(), I see

R_LIBS                       /Users/ken/Library/R/x86_64/4.2/library
R_LIBS_SITE                  
/Library/Frameworks/R.framework/Resources/site-library
R_LIBS_USER                  /Users/ken/Library/R/4.1/library

and the system Renviron file contains

uc7131:Resources ken$ grep R_LIBS etc/Renviron
R_LIBS_USER=${R_LIBS_USER:-'%U'}
R_LIBS_SITE=${R_LIBS_SITE:-'%S'}

but I wouldn't know what to adjust these to, to fix this (if I even 
should).

In Rstudio (which is not the problem of this list), I also get
[1] "/Users/ken/Library/R/4.1/library"
[2] "/Library/Frameworks/R.framework/Versions/4.2/Resources/library"

and I would guess the 4.1 entry is why Rstudio bombs when I try to 
execute any graphics.

I would be grateful for any suggestions as to how to fix this.

Thank you.

best,

Ken