I'm trying to learn how to use the RSelenium
package, but I haven't even been able to connect to a server yet. My code is as simple as:
library(RSelenium)
rs_driver <- rsDriver()
rs_driver
The error message I get is:
[1] "Connecting to remote server"
Could not open chrome browser.
Client error message:
Undefined error in httr call. httr output: Failed to connect to localhost port 4567: Connection refused
Check server log for further details.
$client
[1] "No sessionInfo. Client browser is mostly likely not opened."
$server
PROCESS 'file413018516402.bat', finished.
Warning message:
In rsDriver() : Could not determine server status.
I already tried:
netstat
and RSelenium
.rsDriver()
arguments, varying:
browser
. For Chrome, I also tried different versions, varying chromever
.port
manually, or by using free_port()
from netstat
.Despite having come across some related questions (as listed below), either they remain unsolved or the suggested solutions weren't successfully implemented by me.
I'd really appreciate any help :)
Deleting "LICENSE.chromedriver" (Ric Villalba's suggestion) solved my problem.