R语言修改 libPath包的储存路径

思路:改变R中 .libPaths()?

>R
 >.libPaths()
[1] "/usr/lib64/R/library" "/usr/share/R/library"

方法:新建~/.Rprofile指定libPaths

vi .Rprofile
.libPaths(c("/GPFS/*/lib/R_LIBS","/usr/lib64/R/library","/usr/share/R/library"))
wq

>R
 >.libPaths()
[1] "/GPFS/*/lib/R_LIBS"
[2] "/usr/lib64/R/library"
[3] "/usr/share/R/library"

你可能感兴趣的:(R语言修改 libPath包的储存路径)