RSelenium
RSelenium copied to clipboard
Universal remDr launch function
I just released a completely flexible launching function for RSelenium that works on both 32bit/64bit Linux, MAC, and WINDOWS, both headlessly and graphically using chrome/chromium OR firefox. If you need a universal function to launch RSelenium, use it. It automatically checks your system and determines the best remote driver launch:
Install Pineium First:
if(!require("remotes")){install.packages("remotes")}
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS=TRUE)
remotes::install_github("nbarsch/pineium")
Simplest use of new function (this should be all you ever need, but options specified below):
library(pineium)
remDr <- lit()
#####################################################
Optional use arguments:
Headless:
remDr <- lit(headless=TRUE)
#Firefox option (not as reliable as chrome in some cases):
remDr <- lit(browser="firefox")
#Dockered and headless:
remDr <- lit(headless=TRUE, foo_priority=c("docker"))
#Dockered with a backup of standalone and headless:
remDr <- lit(headless=TRUE, foo_priority=c("docker","standalone"))
#Standalone with a backup of local, with a third backup of docker running graphically:
remDr <- lit(foo_priority=c("standalone","local", "docker"))