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

Error in force(expr) : Failed to generate output. Reason: Failed to open http://127.0.0.1:7080/favicon.ico (HTTP status code: 404) #78

Closed
TiagoVentura opened this issue Sep 1, 2024 · 2 comments

Comments

@TiagoVentura
Copy link

Hi all,

I am trying to convert this simple HTML generated with Xaringan to PDF, and I need help with this error. This is a new error since I used to convert HTML using renderthis::to_pdf before, and I never got this error.

This is the xaringan file

---
title: "Presentation Ninja"
subtitle: "with xaringan"
author: "Yihui Xie"
date: "2016/12/12"
output:
  xaringan::moon_reader:
    lib_dir: libs
    nature:
      highlightStyle: github
      countIncrementalSlides: false
---

One slide.

---

Another slide.

Calling renderthis to convert to pdf

renderthis::to_pdf("test.rmd")

Error

Error in force(expr) : 
  Failed to generate output. Reason: Failed to open http://127.0.0.1:7080/favicon.ico (HTTP status code: 404)

Any help would be appreciated!

@TiagoVentura TiagoVentura changed the title rror in force(expr) : Failed to generate output. Reason: Failed to open http://127.0.0.1:7080/favicon.ico (HTTP status code: 404) Error in force(expr) : Failed to generate output. Reason: Failed to open http://127.0.0.1:7080/favicon.ico (HTTP status code: 404) Sep 1, 2024
@jhelvy
Copy link
Owner

jhelvy commented Sep 1, 2024

Duplicate of #77. Short story is the source of the problem is in dependencies that have yet to be fixed. #77 shows some work arounds people have found for the time being.

@jhelvy jhelvy closed this as completed Sep 1, 2024
@jhelvy
Copy link
Owner

jhelvy commented Sep 29, 2024

Temporary solution for now that worked for me:

install.packages('servr')

See more here.

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

No branches or pull requests

2 participants