簡體   English   中英

在R中安裝RSelenium時出錯

[英]Error while installing RSelenium in R

我嘗試安裝RSelenium軟件包時遇到以下錯誤。

install.packages("RSelenium")  
Installing package into ‘C:/Users/nshukla/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)  
Warning in install.packages :  
  dependency ‘binman’ is not available  
also installing the dependencies ‘subprocess’, ‘semver’, ‘wdman’

There is a binary version available but the source version is later:
             binary source needs_compilation  
  RSelenium  1.6.2  1.7.1             FALSE    

Packages which are only available in source form, and may need compilation of C/C++/Fortran:  
  ‘subprocess’ ‘semver’  
  These will not be installed
installing the source packages ‘wdman’, ‘RSelenium’

trying URL 'https://cran.rstudio.com/src/contrib/wdman_0.2.2.tar.gz'  
Content type 'application/x-gzip' length 26342 bytes (25 KB)  
downloaded 25 KB  

trying URL 'https://cran.rstudio.com/src/contrib/RSelenium_1.7.1.tar.gz'  
Content type 'application/x-gzip' length 4303990 bytes (4.1 MB)  
downloaded 4.1 MB  

錯誤:依賴關系'binman','subprocess','semver'不適用於包'wdman'
*刪除'C:/Users/nshukla/Documents/R/win-library/3.2/wdman'
install.packages中的警告:running命令
'“C:/PROGRA~1/R/R-32~1.3/bin/x64/R”CMD INSTALL -1
“C:\\用戶\\ nshukla \\文件\\ r \\贏庫\\ 3.2”
C:\\ Users \\用戶nshukla \\應用程序數據\\本地\\ TEMP \\ RtmpuAuA2g / downloaded_pa​​ckages / wdman_0.2.2.tar.gz”
有狀態1

install.packages中的警告:安裝包
'wdman'具有非零退出狀態ERROR:依賴'wdman','binman'不適用於包'RSelenium'
*刪除'C:/Users/nshukla/Documents/R/win-library/3.2/RSelenium'

install.packages中的警告:running命令
'“C:/PROGRA~1/R/R-32~1.3/bin/x64/R”CMD INSTALL -l
“C:\\用戶\\ nshukla \\文件\\ r \\贏庫\\ 3.2”
C:\\ Users \\ nshukla \\ AppData \\ Local \\ Temp \\ RtmpuAuA2g / downloaded_pa​​ckages / RSelenium_1.7.1.tar.gz'的狀態為1

install.packages中的警告:軟件包'RSelenium'的安裝具有非零退出狀態

binman包導入semver來解析語義版本字符串。 這取決於C ++ 11。 安裝此版本需要R> = 3.3.0的版本。 您需要升級您的R版本。

這對我有用:

install.packages('RSelenium', type="win.binary")

你可以這樣做:

    library(devtools)
    install_version("binman", version = "0.1.0", repos = "https://cran.uni-muenster.de/")
    install_version("wdman", version = "0.2.2", repos = "https://cran.uni-muenster.de/")
    install_version("RSelenium", version = "1.7.1", repos = "https://cran.uni-muenster.de/")

這是FabianFox在github頁面上的答案: https//github.com/ropensci/RSelenium/issues/172

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM