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

Does gtsave() now require a Chrome installation? #1049

Closed
rdelrossi opened this issue Sep 9, 2022 · 4 comments
Closed

Does gtsave() now require a Chrome installation? #1049

rdelrossi opened this issue Sep 9, 2022 · 4 comments

Comments

@rdelrossi
Copy link

I’m working with the development version of gt() and noticed that gtsave() now uses functionality in webshot2.

Does this mean I now have to have Google Chrome installed in order to use gtsave()? Have tried to avoid installing Chrome to this point!

@henrique1008
Copy link

I had problems with this too
Seems webshot2 needs chrome or chromium to work
At first i received message to needs install chrome in vm ubuntu on azure
But after that, I received other bug, in my local ubuntu it's work nice, but not in cloud ubuntu

bellow the link to my issue
#1029

bests

@rdelrossi
Copy link
Author

rdelrossi commented Sep 9, 2022

Appreciate your comment, @henrique1008.

I've avoided Chrome on my Mac religiously, though I've conceded to Chromium through Vivaldi, which I actually find a very useful tool.

Still, despite the Vivaldi install, I'm getting errors from gt 0.7.0 about not being able to run the Chrome.app.

Error in `process_initialize(self, private, command, args, stdin, stdout, …`:
! Native call to `processx_exec` failed
Caused by error in `chain_call(c_processx_exec, command, c(command, args), pty, pty_options, …`:
! cannot start processx process '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' (system error 2, No such file or directory) @unix/processx.c:613 (processx_exec)

Perhaps there's a way to configure webshot2 to use what it needs from the Vivaldi installation.

I'm pretty invested in gt(), so will need to figure out something for going forward.

@henrique1008
Copy link

I'm pretty invested in gt() too, and very interested in this solution
As you can observe in my issue, after install chrome I'm getting erros from gt 0.7 too, this is a bug I think
In my server, I can use webshot2 normally, but not work in gt 0.7

@rdelrossi
Copy link
Author

rdelrossi commented Sep 9, 2022

Got this to work @henrique1008 without installing Chrome by setting the CHROMOTE_CHROME environment variable to my installation of Vivaldi:

Sys.setenv(CHROMOTE_CHROME = "/Applications/Vivaldi.app/Contents/MacOS/Vivaldi")

Now ggsave(tbl, "x.png") generates the table as a PNG file with no difficulty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants