-
Notifications
You must be signed in to change notification settings - Fork 127
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
chrome_print() fails with a local file #150
Comments
Adding Line 182 in f20e3b2
I don't understand why we should need to execute the events registered in the global loop 🤔 |
I don't think the httpuv server can fully belong to a temp loop; much of its code runs in a background thread implemented in C++, of which there is one per process, and that background thread communicates back to the main R thread using the native equivalent of |
Thanks, @jcheng5! The explanation is super clear. |
With the development version,
pagedown::chrome_print()
fails to generate a pdf from an Rmd file or a local HTML file: I get a timeout. It works well with an external web address.I suspect this comes from #127 and the use of a httpuv webserver.
With the current CRAN version (pagedown 0.5), this is OK:
Log (success)
With the development version, I get a timeout. As one can see in the log, the httpuv server does not respond to the
GET
request sent by Chrome.Log (fail)
I don't understand what is the problem because the httpuv server is created inside
later::with_temp_loop()
:pagedown/R/chrome.R
Lines 122 to 125 in f20e3b2
@jcheng5, @wch Have you any idea how to fix that?
The text was updated successfully, but these errors were encountered: