我正在尝试使用 RSelenium,但在尝试启动远程驱动程序时遇到以下错误。任何关于我需要修复的建议将不胜感激,
library(RSelenium)
RSelenium::checkForServer()
RSelenium::startServer()
require(RSelenium)
system("defaults write org.R-project.R force.LANG en_US.UTF-8")
remote.driver <- remoteDriver(remoteServerAddr = "localhost" , port = 4455, browserName = "firefox")
startServer(args = c("-port 4455"), log = FALSE, invisible = FALSE)
remote.driver$open()
>[1] "Connecting to remote server"
Error: Summary: UnknownError
Detail: An unknown server-side error occurred while processing the command.
class: java.util.zip.ZipException
我的会话详细信息如下
>system("java -version")
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
>sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.10.5 (Yosemite)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RSelenium_1.3.5 XML_3.98-1.3 RJSONIO_1.3-0 RCurl_1.95-4.6 bitops_1.0-6
loaded via a namespace (and not attached):
[1] tools_3.2.0 caTools_1.17.1