我尝试安装 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 :运行命令'“C:/PROGRA~1/R/R-32~1.3/bin/x64/R”CMD INSTALL -1“C:\ Users \ nshukla \ Documents \ R \ win-library \ 3.2”C: \ Users \ nshukla \ AppData \ Local \ Temp \ RtmpuAuA2g / downloaded_packages / wdman_0.2.2.tar.gz'在install.packages中有状态1警告:软件包'wdman'的安装具有非零退出状态ERROR:dependencies'wdman' ,'binman'不适用于包'RSelenium'*删除'C:/Users/nshukla/Documents/R/win-library/3.2/RSelenium'警告install.packages:running command'“C:/ PROGRA~1 /R/R-32~1.3/bin/x64/R“CMD INSTALL -l”C:\ Users \ nshukla \ Documents \ R \ win-library \ 3.2“C:\ Users \ nshukla \ AppData \ Local \ Temp \ RtmpuAuA2g / downloaded_packages / RSelenium_1.7.1.tar.gz'在install.packages中有状态1警告:软件包'RSelenium'的安装具有非零退出状态
3 回答
这对我有用:
你可以这样做:
这是FabianFox在github页面上的答案:https://github.com/ropensci/RSelenium/issues/172
binman
包导入semver
以解析语义版本字符串 . 这取决于C 11.安装它需要R> = 3.3.0的版本 . 您需要升级您的R版本 .