If the chrome binary path has not already been set in HEADLESS_CHROME environment variable, the function will try to find the chrome binary on your system using a some hints.
find_chrome_binary()
A character string. The path the chrome binary that will
be used by crrri
.
It will look in the registry for an installed version
It will return a hard-coded path of Chrome under /Applications
.
It will search for chromium-browser
and google-chrome
from
the system's PATH variable.
From pagedown
R package, licence MIT. Source on Github
Yihui Xie, Romain Lesur, Christophe Dervieux