RSelenium : connection refused error
You need administrator privileges to run a docker container, you can't do this inside an R Script unless it's run with administrator privileges. This goes for Windows or Mac users.
My recommendation is to run the command
docker run -d -p 4445:4444 selenium/standalone-chrome
inside a command-line shell you have opened with admin privileges.