2015-08-30 112 views
0

我想將我的R腳本連接到SOAP Web服務器以提取數據。我是一個R新手,但一個體面的程序員。在Rstudio(Mac OS)上安裝「SSOAP軟件包」 - 獲取錯誤

  • 我已經安裝了Rstudio
  • 我安裝RCurl和XML2包。
  • 現在我試圖安裝

    SSOAP包。我下載從這裏.tar.gz文件: http://www.omegahat.org/SSOAP/

下一頁上Rstudio並在「包」所用的「安裝」按鈕,在這裏看到:

我得到這個錯誤後:

> library("RCurl", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library") 
Loading required package: bitops 

> library("xml2", lib.loc="/Library/Frameworks/R.framework/Versions/3.2/Resources/library") 

> install.packages("~/Desktop/R/downloads/SSOAP_0.9-0.tar.gz", repos = NULL, type = "source") 

    ERROR: dependencies ‘XML’, ‘XMLSchema’ are not available for package ‘SSOAP’ 
* removing ‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/SSOAP’ 
    Warning in install.packages : 
    installation of package ‘/Users/XX/Desktop/R/downloads/SSOAP_0.9-0.tar.gz’ had non-zero exit status 

有什麼建議嗎?

回答

2

它看起來像缺少兩個依賴關係。 install.packages('XML')應該修復第一個(因爲CRAN仍然託管XML包)。 XMLSchema似乎已從CRAN中取消列出。但是,您應該能夠像使用SSOAP一樣嘗試下載和安裝.tar.gz:http://www.omegahat.org/XMLSchema/