.find_chrome | R Documentation |
On Windows, this function tries to find Chrome from the registry. On macOS,
it returns a hard-coded path of Chrome under ‘/Applications’. On Linux,
it searches for chromium-browser
and google-chrome
from
the system's PATH variable.
.find_chrome()
This function is borrowed from 'pagedown' here to avoid the dependency: https://github.com/rstudio/pagedown/blob/main/R/chrome.R which is MIT licensed. We note that there is no check made on MacOS that the path is correct, and since it may be installed elsewhere this is a potential point of failure. Must assume that calls to chrome may fail.
A character string with the path of chrome or an error.
try(.find_chrome())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.