Learn R Programming

wdman (version 0.2.2)

gecko: Start gecko driver

Description

Start gecko driver

Usage

gecko(port = 4567L, version = "latest", check = TRUE, loglevel = c("info", "fatal", "error", "warn", "config", "debug", "trace"), verbose = TRUE, retcommand = FALSE, ...)

Arguments

port
Port to run on
version
what version of geckodriver to run. Default = "latest" which runs the most recent version. To see other version currently sourced run binman::list_versions("geckodriver")
check
If TRUE check the versions of geckodriver available. If new versions are available they will be downloaded.
loglevel
Set Gecko log level [values: fatal, error, warn, info, config, debug, trace]
verbose
If TRUE, include status messages (if any)
retcommand
If TRUE return only the command that would be passed to spawn_process
...
pass additional options to the driver

Value

Returns a list with named elements process, output, error and stop. process is the output from calling spawn_process output, error and stop are functions calling process_read, process_read with "stderr" pipe and process_kill respectively on process.

Examples

Run this code
## Not run: 
# gDrv <- gecko()
# gDrv$output()
# gDrv$stop()
# ## End(Not run)

Run the code above in your browser using DataLab