我已在我的linux服务器上安装了chromedriver并正在运行
1. Query documents in the database
2. Get a timestamp from the ID's of the documents in the database
3. Set a range of the timestamps
4. Compare returned timestamps vs a timestamp range variable (yesterdays date in this case)
5. Have the DB return only documents that are within the range
R抛出错误:
Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 9515
Only local connections are allowed.
答案 0 :(得分:0)
解决方案是使用DISPLAY参数手动调用Selenium服务器。
command <- "DISPLAY=:1 xvfb-run java -jar /usr/local/lib/R/site-library/RSelenium/bin/selenium-server-standalone.jar &"
system(command, intern = FALSE)