pw_init: Initialize Playwright with optional XVFB

View source: R/pw_init.R

pw_initR Documentation

Initialize Playwright with optional XVFB

Description

The pw_init function initializes Playwright and optionally starts XVFB if it has not been started already.

Usage

pw_init(use_xvfb = TRUE)

Arguments

use_xvfb

A boolean value indicating whether to start XVFB using XVFBWrapper. If set to TRUE and XVFB has not been started already, XVFB will be started before initializing Playwright. If set to FALSE or if XVFB has already been started, XVFB will not be started.

Examples

# Initialize Playwright without XVFB
pw_init(use_xvfb = FALSE)

# Initialize Playwright with XVFB
pw_init(use_xvfb = TRUE)


benjaminguinaudeau/playwrightr documentation built on Nov. 8, 2023, 8:36 p.m.