RSelenium icon indicating copy to clipboard operation
RSelenium copied to clipboard

Universal remDr launch function

Open nbarsch opened this issue 6 years ago • 0 comments

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"))

nbarsch avatar Nov 16 '19 13:11 nbarsch