I\'m trying to work out why my .libPath is different between command-line R and RStudio Desktop (NOTE: this is not a duplicate of
.libPath
Just to document here in case someone finds it useful, according to ArchWiki we can define R_LIBS_USER in ~/.Renviron, which I feel is a more convenient way to define specific variables for R.