我正在使用以下代码

remDr <- remoteDriver(browserName = "phantomjs")
URL <-"http://www.soccer24.com/kosovo/superliga/results/#"
remDr$open()

我收到以下错误:
Error:   Summary: UnknownError
     Detail: An unknown server-side error occurred while processing the command.
     class: java.lang.IllegalStateException

我不知道为什么会收到错误消息?

我的sessionInfo()结果如下:
R version 3.0.3 (2014-03-06)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics grDevices utils datasets methods base

other attached packages:
[1] R Selenium_1.3.5 RJSONIO_1.3-0 XML_3.98-1.1 RCurl_1.95-4.5 bitops_1.0-6

loaded via a namespace (and not attached):
[1] caTools_1.17.1 tools_3.0.3

下面提供了我的Java版本供您参考:
system("java -version")
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) Client VM (build 24.55-b03, mixed mode, sharing)

最佳答案

看来您的路径上目前没有pha​​ntomjs.exe。可以在RSelenium“Saucelabs”小插图http://cran.r-project.org/web/packages/RSelenium/vignettes/RSelenium-saucelabs.html#id2a中找到更多详细信息。

因此,请从此处下载phantomjs:http://phantomjs.org/download.html并将exe放在您的路径中。

10-08 02:55