-
Notifications
You must be signed in to change notification settings - Fork 213
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
Problem with gt::gt_save() in a Ubuntu virtual machine on Azure #1029
Comments
I was rendering reports to MS Word. Using gt version 0.6.0, I could not create tables in Word so I used gtsave() to save an image and import into the Rmarkdown for rendering to Word. After updating to gt version 0.7.0, the markdown document would render the png image in my directory, but it would not import into Rmarkdown and the image was not rerndered in the MS Word document. I have removed version 0.7.0 and reverted to version 0.6.0 and all is working as before. |
Just wanted to contribute that my experience this morning confirms this behavior is apparently unrelated to Azure or VM's. My org models Posit's Shared Baseline env arch, we advanced the date and this bug appeared in the version now available to our environment, taking down a cascade of scheduled reports. That's on Ubuntu 20 LTS bare metal. |
Hello |
My problem is in the webshot2 selector parameter When |
Hi @henrique1008, can you re-run your example and then call |
Hi @gadenbuie Looking inside the The code of
I'll reproduce the behavior of the function here
And I get this error
But if I try without selector parameter in webshot2, I don´t get this error, however the .png that is saved is blank To work around I made a fork of the gt package, and replaced webshot2 with webshot, now I'm able to use the latest version of gt Session Info
|
I am also having this issue, on Ubuntu 22. session info attached for what it's worth.
|
Another workaround (similar to #97 (comment)). Produce html output and then run webshot manually. library(gt)
library(webshot)
table <- mtcars |>
gt::gt()
gt::gtsave(table,"table.html")
webshot::webshot(url = "table.html", file = "table.png") |
This didn't work for me. Well, it does, but now I get a huge screenshot with a ton of whitespace, which is not ideal. |
I try the following code
The usecase is run the code on virtual machine in Azure, Ubuntu 22.04.
But I recieved this error and the .png file don't saved
In 0.6.0 version this don't happened, and it's happen and started by exchanging the use of webshot for webshot2
At first I received the error message due to the lack of chrome or chromium
But after installing, I received this other
Adding information
If I just use webshot2 it works normally
This code work's perfectly
The text was updated successfully, but these errors were encountered: