2021-07-13 R包安装出错与解决方法

win10系统 刚装好R和Rstudio,R版本为4.0.0时,需要安装Rtools 

https://cran.r-project.org/bin/windows/Rtools/rtools40-x86_64.exe

报错:(as ‘lib’ is unspecified)

解决:.libPaths() ##查看包的安装途径 .libPaths ("C:/Program Files/R/R-4.0.0/library")

报错:"C:/Program Files/R/R-4.0.0/library"' is not writable

解决:以管理器权限打开R

报错:unable to access index for repository /src/contrib...

解决:局域网设置

你可能感兴趣的:(2021-07-13 R包安装出错与解决方法)