rstudio安装devtool出现“无法解析服务器的名称或地址”问题的解决

问题:直接使用CRAN的源出现如下错误

Warning in install.packages :
InternetOpenUrl failed: '无法解析服务器的名称或地址'
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1

解法:在tools中设置中国地区的mirror即可

tools->Global Options

install.packages(devtools)

原文地址:https://www.cnblogs.com/jiangz/p/3677129.html