解决R报错

2019-06-07  本文已影响0人  miao_hzaupo

常见报错-1

> library(RSQLite)
Warning message:
程辑包‘RSQLite’是用R版本3.4.4 来建造的
> install.packages("installr")
> library(installr)
> updateR()

参考CSDN博主的文章


没有权限安装包

installation path not writeable, unable to update packages: cluster, nlme

虽然已经修改了权限,但是还是不可以

BiocManager::install(c("cluster", "nlme"))

安装包:cannot open url

Warning: unable to access index for repository https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib:
 cannot open URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/PACKAGES' 

安装包的时候遇到类似于无法打开镜像源的问题,即使更换了也没有解决,网上看到一种解决方案试了一下 work:将https换成http,虽然我们浏览器不管是http、https都能打开

# 输入如下命令,但是重启后还会变回原来的设置
options(repos='http://cran.rstudio.com/')

要改一个R studio设置: Tools -> Global Options -> Packages and unchecking the "Use Internet Explorer library/proxy for HTTP" option,将Use Internet Explorer library/proxy for HTTP选项反勾选
参考来源

上一篇 下一篇

猜你喜欢

热点阅读