[英]Error while installing RSelenium in R
I am getting following error when I try to install the RSelenium
package. 我尝试安装
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
ERROR: dependencies 'binman', 'subprocess', 'semver' are not available for package 'wdman'
错误:依赖关系'binman','subprocess','semver'不适用于包'wdman'
* removing 'C:/Users/nshukla/Documents/R/win-library/3.2/wdman'*删除'C:/Users/nshukla/Documents/R/win-library/3.2/wdman'
Warning in install.packages : running commandinstall.packages中的警告:running命令
'"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" CMD INSTALL -1'“C:/PROGRA~1/R/R-32~1.3/bin/x64/R”CMD INSTALL -1
"C:\\Users\\nshukla\\Documents\\R\\win-library\\3.2"“C:\\用户\\ nshukla \\文件\\ r \\赢库\\ 3.2”
C:\\Users\\nshukla\\AppData\\Local\\Temp\\RtmpuAuA2g/downloaded_packages/wdman_0.2.2.tar.gz'C:\\ Users \\用户nshukla \\应用程序数据\\本地\\ TEMP \\ RtmpuAuA2g / downloaded_packages / wdman_0.2.2.tar.gz”
had status 1有状态1
Warning in install.packages : installation of package
install.packages中的警告:安装包
'wdman' had non-zero exit status ERROR: dependencies 'wdman', 'binman' are not available for package 'RSelenium''wdman'具有非零退出状态ERROR:依赖'wdman','binman'不适用于包'RSelenium'
* removing 'C:/Users/nshukla/Documents/R/win-library/3.2/RSelenium'*删除'C:/Users/nshukla/Documents/R/win-library/3.2/RSelenium'
Warning in install.packages : running command
install.packages中的警告:running命令
'"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" CMD INSTALL -l'“C:/PROGRA~1/R/R-32~1.3/bin/x64/R”CMD INSTALL -l
"C:\\Users\\nshukla\\Documents\\R\\win-library\\3.2"“C:\\用户\\ nshukla \\文件\\ r \\赢库\\ 3.2”
C:\\Users\\nshukla\\AppData\\Local\\Temp\\RtmpuAuA2g/downloaded_packages/RSelenium_1.7.1.tar.gz' had status 1C:\\ Users \\ nshukla \\ AppData \\ Local \\ Temp \\ RtmpuAuA2g / downloaded_packages / RSelenium_1.7.1.tar.gz'的状态为1
Warning in install.packages : installation of package 'RSelenium' had non-zero exit status
install.packages中的警告:软件包'RSelenium'的安装具有非零退出状态
The binman
package imports semver
to parse semantic version strings. binman
包导入semver
来解析语义版本字符串。 This depends on C++11. 这取决于C ++ 11。 A version of R >= 3.3.0 is needed to install this.
安装此版本需要R> = 3.3.0的版本。 You would need to upgrade your version of R.
您需要升级您的R版本。
这对我有用:
install.packages('RSelenium', type="win.binary")
You could do this: 你可以这样做:
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/")
This is the answer of FabianFox on the github page: https://github.com/ropensci/RSelenium/issues/172 这是FabianFox在github页面上的答案: https : //github.com/ropensci/RSelenium/issues/172
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.