当我尝试安装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:\用户\ nshukla \文件\ r \赢库\ 3.2”
C:\ Users \用户nshukla \应用程序数据\本地\ TEMP \ RtmpuAuA2g / downloaded_packages / wdman_0.2.2.tar.gz'
有状态1install.packages中的警告:安装包
'wdman'具有非零退出状态ERROR:dependencies'wdman','binman' 不适用于'RSelenium'包装 *删除'C:/Users/nshukla/Documents/R/win-library/3.2/RSelenium'install.packages中的警告:运行命令
'“C:/PROGRA~1/R/R-32~1.3/bin/x64/R”CMD INSTALL -l <br/> “C:\用户\ nshukla \文件\ r \赢库\ 3.2”
C:\ Users \用户nshukla \应用程序数据\本地\ TEMP \ RtmpuAuA2g / downloaded_packages / RSelenium_1.7.1.tar.gz” 有状态1install.packages中的警告:安装包 'RSelenium'具有非零退出状态
答案 0 :(得分:3)
binman
包导入semver
以解析语义版本字符串。这取决于C ++ 11。安装此版本需要R> = 3.3.0的版本。您需要升级您的R版本。
答案 1 :(得分:2)
这对我有用:
install.packages('RSelenium', type="win.binary")
答案 2 :(得分:2)
你可以这样做:
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