-
Notifications
You must be signed in to change notification settings - Fork 328
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
Error with chromote R package when trying to render HTML like mermaid or ploty in PDF format #8341
Comments
Could you fill completely the template (in the appropriate sections) as we do really need to know "Steps to reproduce", "Your environment", and "Quarto check output"? You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```
![A placeholder image](https://placehold.co/600x400.png)
The end.
```` |
Just some context. When using some Plotly HTML output inside a document that will render to PDF, knitr will try to make a screenshot of the plotly graph using webshot or webshot2 (preferring websho2 as default if both are present). From the error message I see, webshot2 is used, and for some reason it does not manage to connect to Chrome (it uses chromote for this) and so unable to make the screenshot. This is a R issue - you should check that webshot2 is working on your environment. I see you are using renv so you should check the version and see if updating would help. |
That would explain it @cderv as the linux 10 is a gui-less server, hence no virtual chorme windows can be opened, if that is how it works?? |
chromote is a tool to communicate with chrome headless. So no need to open a visual within a browser window. You can maybe try chromote directly to see if webshot2 would work on your environment See its doc at https://rstudio.github.io/chromote/ |
I think it has something to do with the proxy setting on the server. |
I see report of this upstream - so could be related indeed |
Find a minimal reproduction here: https://github.com/jannismain/quarto-mermaid-pdf-issue |
@jannismain thanks for the example. Is the issue you have directly related to this one ? It does not seem so as the error @Patrikios is getting is from R trying to connect to chrome. In your case, you are using Also, if I follow the step to reproduce, I can produce the pdf file with mermaid graph
Please look for issues with Chrome and mermaid opened in the repo, and open a new one with your example and details about your environment. It will be best to get each issue in their own thread. |
@cderv thanks for checking out the example I provided. From the title of this issue, I thought they were related, but I will find a better place to discuss the issue I am experiencing 👍 |
yeah I guess it right. That is why I tweaked the title of this issue |
Thank you for using Quarto and reporting an issue! Unfortunately, this issue is now considered stale because it has been opened since 14 days without providing a "working" reproducible example to help us investigate. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four
|
Bug description
Steps to reproduce
No response
Expected behavior
webshot and webdhor 2 is installed
quarto install chromium run Okay,
Seperate google-chrome-stable_current_amd64.deb installed.
I am on debian 10, R 4.3.2 quarto version CLI 1.4.454
Actual behavior
No response
Your environment
No response
Quarto check output
No response
The text was updated successfully, but these errors were encountered: