Description Usage Arguments Details Value See Also Examples
Arguments and preferences to pass to chrome driver
1 2 3 4 5 6 7 8 9 10 11 12 13 | chrome_options(
cargs = c("--disable-gpu", "--window-size=1280,800"),
headless = TRUE,
...,
download_path = tempdir()
)
firefox_options(
cargs = c("--width=1280", "--height=800", "--memory 1024mb"),
headless = TRUE,
...,
download_path = tempdir()
)
|
cargs |
character arguments to pass to driver. |
headless |
logical, is the driver run in headless state. Default: TRUE |
... |
additional preferences to add to driver. |
download_path |
character, Path to save files to. Default: tempdir() |
By default the preferences are set to allow for local dowloading to a user defined path.
chrome:
"profile.default_content_settings.popups" = 0L
download.prompt_for_download" = FALSE
download.directory_upgrade" = TRUE
safebrowsing.enabled" = TRUE
download.default_directory" = download_path
firefox:
'browser.download.folderList' = 2
'browser.download.lastDir' = download_path
'browser.download.dir' = download_path
list
Other driver:
chrome_version()
,
firefox_driver()
,
set_chrome_driver()
,
set_firefox_driver()
,
set_timeout()
Other driver:
chrome_version()
,
firefox_driver()
,
set_chrome_driver()
,
set_firefox_driver()
,
set_timeout()
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.