几天前,我在此处发布了有关在 RStudio 中安装软件包的问题 - RStudio 软件包安装错误。但是,我的问题被标记为重复,假设评论中发布的解决方案实际上是最好的解决方案。
尽管我遇到了与已经提到的完全相同的问题,但 Ian 发布的解决方案并没有帮助。事实上,我得到了一种新的错误。请看下面:
Warning in install.packages :
unable to connect to 'cran.rstudio.com' on port 80.
Warning in install.packages :
unable to connect to 'cran.rstudio.com' on port 80.
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Warning in install.packages :
unable to connect to 'www.stats.ox.ac.uk' on port 80.
Warning in install.packages :
unable to connect to 'www.stats.ox.ac.uk' on port 80.
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.1
Installing package into ‘C:/Users/avi/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)