rstudio / pagedown

Paginate the HTML Output of R Markdown with CSS for Print
https://pagedown.rbind.io
Other
894 stars 127 forks source link

chrome_print: Failed to open http://127.0.0.1:7230/favicon.ico #334

Closed veroandreo closed 1 month ago

veroandreo commented 1 month ago

Hello,

I'm trying to print my CV from an html file using chrome_print(), but I'm getting the following:

pagedown::chrome_print(input = "resume_es.html", output = "resume_es.pdf")
Error in force(expr) : 
  Failed to generate output. Reason: Failed to open http://127.0.0.1:5800/favicon.ico (HTTP status code: 404)

The code I use is here.

I checked the source code of chrome_print, but failed to find anything about favicon. I use pagedown 0.20 in R 4.2. I ended up using Ctrl+P from the Chrome directly and it works, but it's not the optimal solution...

Thanks in advance for any hints!

cderv commented 1 month ago

This seems a duplicate of

You should check you chrome version, and also update R packages. did you update pagedown ?

yihui commented 1 month ago

I think so. The solution is install.packages('servr').

veroandreo commented 1 month ago

That worked, thanks!