警告:无法访问存储库的索引 https://www.stats.ox.ac.uk/pub/RWin/src/contrib: [英] Warning: unable to access index for repository https://www.stats.ox.ac.uk/pub/RWin/src/contrib:

查看:29
本文介绍了警告:无法访问存储库的索引 https://www.stats.ox.ac.uk/pub/RWin/src/contrib:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从今天开始,每次我尝试使用 Rstudio 1.0.143 在 R (3.4.1) 上安装新软件包时,我都会收到此错误消息:

From today, every time I try to install a new package on R (3.4.1) with Rstudio 1.0.143 I receive this error message:

警告:无法访问存储库索引 https://www.stats.ox.ac.uk/pub/RWin/src/contrib:无法打开 URL 'https://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'

Warning: unable to access index for repository https://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'https://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'

我在全局选项>包中更改了 CRAN 镜像,但它仍然显示此错误.软件包已开始从与 stats.ox.ac.uk 不同的服务器下载,但在 R 尝试连接到 stats.ox.ac.uk 时存在巨大延迟.这是一个全球性的问题,还是只是发生在我身上?如果是全局的,是否有解决方法来阻止显示此错误消息?

I change the CRAN mirror in Global options>packages but it still shows this error. The packages have started downloading from a different server than stats.ox.ac.uk but there is huge delay while R tries to connect to stats.ox.ac.uk. Is this a global problem, or just happening to me? If global, is there a workaround to stop this serror message from showing?

谢谢.深的(Dwaipayan Adhya)

Thanks. Deep (Dwaipayan Adhya)

推荐答案

我猜这是一个临时问题(但仍然是一个烦人的问题,我今天早上处理了这个问题).该存储库很可能是与CRAN"存储库一起设置为CRANextra"的附加存储库.解决方案是重新定义 repos 选项以不包含 CRANextra.您可以使用 setRepositories() 命令并取消选择CRANextra".或者,您可以运行以下代码,该代码将删除除CRAN"选择之外的所有存储库.

I'm guessing this is a temporary issue (but an annoying one nonetheless and one that I dealt with this morning). That repository is most likely an additional one set alongside the "CRAN" repository as "CRANextra". The solution is to redefine the repos option to not include CRANextra. You can use the setRepositories() command and unselect "CRANextra". Alternatively you could just run the following code which will remove all repositories except the "CRAN" selection.

options(repos = getOption("repos")["CRAN"])

这篇关于警告:无法访问存储库的索引 https://www.stats.ox.ac.uk/pub/RWin/src/contrib:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆