I have my R packages spread over multiple directories, both user-specific and system-wide:
r$> .libPaths()
[1] "/home/user/R/custom_lib"
[2] "/home/user/R/x86_64-pc-linux-gnu-library/4.2"
[3] "/usr/local/lib/R/site-library"
[4] "/usr/lib/R/site-library"
[5] "/usr/lib/R/library"
I'd like to move all packages to the system directory /usr/lib/R/library
, and I was wondering if I can just move the folders, or will that create problems? Alternatively, how would I go about it?