browser_launch | R Documentation |
This function launches a Playwright browser instance and returns a tibble containing the ID of the browser. The browser instance can be used to create new browser contexts and perform various actions.
browser_launch(
browser = c("chromium", "firefox", "webkit"),
headless = TRUE,
timeout = 30000,
user_data_dir = NULL,
channel = NULL,
user_agent = NULL
)
headless |
Whether to run the browser in headless mode. Default is |
timeout |
Maximum time in milliseconds to wait for the browser instance to start. Default is 30000 (30 seconds). Pass 0 to disable timeout. |
executable_path |
Path to a browser executable to run instead of the bundled one. If |
args |
Additional arguments to pass to the browser instance. Default is |
proxy |
Proxy settings for all requests. Default is |
slow_mo |
Slows down Playwright operations by the specified amount of milliseconds. Useful for debugging.
Default is |
A tibble containing the ID of the launched browser.
browser <- browser_launch()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.