ensure_chrome: Ensure Chrome is available, downloading if necessary
Description
Checks if Chrome is available and optionally downloads a standalone
Chrome for Testing if not found. This ensures Chrome-based rendering
works without requiring a system-wide Chrome installation.
Usage
ensure_chrome(download = FALSE, verbose = TRUE)
Value
TRUE if Chrome is available (or was successfully downloaded),
FALSE otherwise.
Arguments
download
If TRUE and Chrome is not found, attempt to download
Chrome for Testing (default FALSE).
verbose
Print status messages (default TRUE).
Details
When download = TRUE, this function will download "Chrome for Testing",
a standalone Chrome distribution designed for automation. The download
is approximately 150MB and is cached in the user's data directory.
Alternatively, you can:
Install Chrome/Chromium system-wide
Set the CHROMOTE_CHROME environment variable to point to an existing installation