在R中安装程序包时出现依赖项错误

在R中安装程序包时出现依赖项错误,r,R,嗨,我是R的新用户。在win8上安装了R。现在我正在尝试安装软件包,但遇到以下错误: install.packages("C:/Users/Owner/Downloads/pROC_1.5.4.tar.gz", repos = NULL, type = "source") Warning in install.packages : InternetOpenUrl failed: 'The server name or address could not be resolved' Warnin

嗨,我是R的新用户。在win8上安装了R。现在我正在尝试安装软件包,但遇到以下错误:

install.packages("C:/Users/Owner/Downloads/pROC_1.5.4.tar.gz", repos = NULL, type = "source")
Warning in install.packages :
  InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
  InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
  unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.0
Warning in install.packages :
  InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
  InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
  unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.0
Warning in install.packages :
  package ‘C:/Users/Owner/Downloads/pROC_1.5.4.tar.gz’ is not available (for R version 3.0.1)
Installing package into ‘C:/Users/Owner/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
ERROR: dependency 'plyr' is not available for package 'pROC'
* removing 'C:/Users/Owner/Documents/R/win-library/3.0/pROC'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\Owner\Documents\R\win-library\3.0" "C:/Users/Owner/Downloads/pROC_1.5.4.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘C:/Users/Owner/Downloads/pROC_1.5.4.tar.gz’ had non-zero exit status
安装plyr软件包不会有太大区别,因为您的R发行版不支持pROC。 此外,由于您使用Rstudio,您可能会发现通过

Tools>Install Packages 
然后设置

Install from:  

这样你就不必手动下载它们了。 作为pROC的替代方案,您可以使用ROCR。
如果您计划使用pROC计算曲线下的面积,也可能会感兴趣,无论如何,我要偏离主题

眼前的问题似乎是,如果您改变它的外观,您使用的是正斜杠而不是反斜杠:

install.packages("C:\\Users\\Owner\\Downloads\\pROC_1.5.4.tar.gz", repos = NULL, type = "source")

祝你好运

您需要在安装前安装plyr软件包。为什么不通过
install.packages(“pROC”)
从CRAN安装软件包?我不使用windows,但您可能需要Rtools从本地安装R软件包。除了@sgibb所说的一切,我建议升级到R的最新版本,以简化软件包管理。看起来CRAN mirrors只在R3.2之前维护R的包。您可以获得旧版本的软件包,但这需要做更多的工作。
install.packages("C:\\Users\\Owner\\Downloads\\pROC_1.5.4.tar.gz", repos = NULL, type = "source")