RStudio无法与服务器建立连接 基于R/RStudio中安装包“无法与服务器建立连接”的解决方案(IT技术) |
您所在的位置:网站首页 › rstudio无法打开 › RStudio无法与服务器建立连接 基于R/RStudio中安装包“无法与服务器建立连接”的解决方案(IT技术) |
想了解基于R/RStudio中安装包“无法与服务器建立连接”的解决方案的相关内容吗,truffle528在本文为您仔细讲解RStudio无法与服务器建立连接的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:RStudio,安装包,无法与服务器,建立连接,下面大家一起来学习吧。
这几天在用RStudio写程序的时候突然出现无法从网络直接安装r包的问题,也无法从本地直接安装。 通过多方尝试找到了问题解决的办法,现在记录在这里。 程序报错如下: > install.packages('REmap') Warning in install.packages : unable to access index for repository https://cran.rstudio.com/src/contrib: cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES' Warning in install.packages : unable to access index for repository https://cran.rstudio.com/src/contrib: cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES' Warning in install.packages : package ‘REmap' is not available (for R version 3.4.1) Warning in install.packages : unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/3.4: cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/PACKAGES' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES' Warning: unable to access index for repository https://cran.rstudio.com/src/contrib: cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES' Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'网络上主流的解决方式是在tools-global options-packages中切换下载的镜像,有很多人反映他们的问题通过这个方法得到了解决,但是我换过很多镜像都没有用。 另一种方式是修改文件,在安装文件夹中找到Rprofile.site文件,我的路径是D:\Program Files\R\R-3.4.1\etc,用记事本打开,在里面添加语句: # set a CRAN mirror local({r |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |