0

こんにちは、R の比較的新しいユーザーです。R を win8 にインストールしました。今、パッケージをインストールしようとしていますが、次のエラーが発生します:

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
4

2 に答える 2

0

RディストリビューションではpROCがサポートされていないため、 plyrパッケージをインストールしても大きな違いはありません。また、Rstudio を使用しているため、パッケージをインストールする方が簡単な場合があります。

Tools>Install Packages 

そして設定

Install from:  

Repository(CRAN). 

そうすれば、手動でダウンロードする必要はありません。pROCの代わりにROCRを使用できます。また、 pROCを使用して曲線の下の領域を計算することを計画している場合、これは興味深いかもしれません。

于 2013-08-01T15:38:54.933 に答える