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

sh: 1: weasyprint: not found #13

Open
royfrancis opened this issue Nov 26, 2020 · 1 comment
Open

sh: 1: weasyprint: not found #13

royfrancis opened this issue Nov 26, 2020 · 1 comment

Comments

@royfrancis
Copy link

royfrancis commented Nov 26, 2020

Trying a very simple example.

---
title: Test
output:
  weasydoc::hpdf_document
---

I get the following error when I knit.

output file: test2.knit.md

sh: 1: weasyprint: not found
Error: Document conversion failed with error 127
In addition: Warning message:
In system2(command = engine, args = args) : error in running command
Execution halted

But weasyprint command works fine in the terminal. Not sure why R can't seem to find it. I have tried restarting R, RStudio and the system. Is there some way way to specify a path to the executable? Or perhaps you see something that I don't.

@RLesur
Copy link
Owner

RLesur commented Nov 30, 2020

TBH, I don't know, have you tried Sys.which('weasyprint')?

You can find here a Dockerfile that used to work https://hub.docker.com/r/rlesur/weasydoc/dockerfile

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