Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find Google Chrome when it is installed in Linux #39

Closed
bshor opened this issue Nov 15, 2021 · 2 comments
Closed

Can't find Google Chrome when it is installed in Linux #39

bshor opened this issue Nov 15, 2021 · 2 comments

Comments

@bshor
Copy link

bshor commented Nov 15, 2021

Hello,

I'm running the latest versions of R and Rstudio on Arch-derived Garuda Linux. I'm also running the latest version of Google Chrome.

I want to output PDF from my Xaringen slides (I can see the HTML just fine).

But I get the following error:

google-chrome` and `chromium-browser` were not found. Try setting the CHROMOTE_CHROME environment variable or adding one of these executables to your PATH.
Error: This function requires a local installation of the Chrome browser. You can also use other browsers based on Chromium, such as Chromium itself, Edge, Vivaldi, Brave, or Opera.

I see how to set the environmental variable, but I'm getting an error from the Fish shell:

╰─λ Sys.setenv(CHROMOTE_CHROME = "/usr/bin/google-chrome-stable")
fish: Command substitutions not allowed
Sys.setenv(CHROMOTE_CHROME = "/usr/bin/google-chrome-stable")

@gadenbuie
Copy link
Collaborator

@bshor Run that code in your R console before building PDFs

Sys.setenv(CHROMOTE_CHROME = "/usr/bin/google-chrome-stable")

or open ~/.Renviron and add a line like this

CHROMOTE_CHROME="/usr/bin/google-chrome-stable"

@bshor
Copy link
Author

bshor commented Nov 15, 2021

Thank you! Setting it in ~/.Renviron worked perfectly. Guess I don't have a full handle on Linux environmental variables. I'm getting some other error, but this part is fixed, thanks!

@bshor bshor closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants