Describe your issue
My R Markdown file will no longer knit to html. For the past week, it keeps giving me this error message in the Render panel:
! Failed to start chrome. Error:
Old Headless mode has been removed from the Chrome binary. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
What steps have you already taken to find an answer?
I clicked the link to the new headless instructions, which told me to pass the following command-line flag:
chrome --headless
I followed the instructions at Chromium - How to specify command line flags on how to specify a command-line flag:
- Exit any running-instance of chrome.
- Find the shortcut you normally use to launch chrome.
- Create a copy of it
- Right click on the new shortcut, and select Properties
- At the very end of the Target: text box, add a space and then the desired command line flags. It should end in something like …\chrome.exe" --foo --bar=2
Double click the new shortcut to launch chrome with the new command line flags.
Unfortunately, I’m still getting the same error after the above actions.
Has anyone seen this before, and if yes, do you know how to fix it?
Thanks so much,
Cristin