修改R语言的安装包路径

#新建一个初始启动文件
file.edit(’~/.Rprofile’)

#更改R包默认安装路径
myPaths <- c(“D:/Program Files/R/win-library/3.5”)
.libPaths(myPaths)

然后把代码复制到初始文件.Rprofile中。
重启R,即可。

更多推荐