pw_init | R Documentation |
The pw_init
function initializes Playwright and optionally starts XVFB if it has not been started already.
pw_init(use_xvfb = TRUE)
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. |
# Initialize Playwright without XVFB
pw_init(use_xvfb = FALSE)
# Initialize Playwright with XVFB
pw_init(use_xvfb = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.