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

Knitting PDF from Rmd fails #590

Closed
chozelinek opened this issue Jan 8, 2016 · 8 comments
Closed

Knitting PDF from Rmd fails #590

chozelinek opened this issue Jan 8, 2016 · 8 comments
Milestone

Comments

@chozelinek
Copy link

Hi,

Problem:

I try to knit a PDF from an Rmd, and I get the following messages (I tried with the default content when one creates a new Rmd file).

processing file: test.Rmd
  |.............                                                    |  20%
  ordinary text without R code

  |..........................                                       |  40%
label: unnamed-chunk-1
  |.......................................                          |  60%
  ordinary text without R code

  |....................................................             |  80%
label: unnamed-chunk-2 (with options) 
List of 1
 $ echo: logi FALSE

cropping test_files/figure-latex/unnamed-chunk-2-1.pdf
PDFCROP 1.38, 2012/11/02 - Copyright (c) 2002-2012 by Heiko Oberdiek.
==> 1 page written on `test_files/figure-latex/unnamed-chunk-2-1.pdf'.
  |.................................................................| 100%
  ordinary text without R code


output file: test.knit.md

/usr/local/bin/pandoc +RTS -K512m -RTS test.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output test.pdf --template /Library/Frameworks/R.framework/Versions/3.2/Resources/library/rmarkdown/rmd/latex/default-1.14.tex --highlight-style tango --latex-engine /Library/TeX/texbin/pdflatex --variable 'geometry:margin=1in' 
Unknown program /Library/TeX/texbin/pdflatex
pandoc: Error producing PDF
Error: pandoc document conversion failed with error 43
Execution halted

My set up:

The intermediate TeX file is compiled out of RStudio without problems.

If I use pandoc to transform the intermediate TeX file to PDF I get it right:

pandoc test.tex -o test.pdf
@yihui
Copy link
Member

yihui commented Jan 8, 2016

This is a known bug of Pandoc (1.16) that has been fixed: jgm/pandoc#2618 I have no idea when the next version of Pandoc will be released. Before the next version of Pandoc, you can revert to Pandoc 1.15.2: https://github.com/jgm/pandoc/releases/tag/1.15.2 You can install Pandoc >= 1.16.0.1 from https://github.com/jgm/pandoc/releases

@chozelinek
Copy link
Author

Downgraded pandoc to 1.15.2 and it works again. Thank you @yihui for the pointer, and all the work!

@yihui
Copy link
Member

yihui commented Jan 11, 2016

No problem. FYI, Pandoc 1.16.0.1 has been released and this issue has been fixed there: https://github.com/jgm/pandoc/releases

@cpsievert
Copy link
Contributor

Looks as though pandoc 2.0 might have re-introduced this issue

@rdrr1990
Copy link

I just posted about this issue for 2.0: #1120

@yihui
Copy link
Member

yihui commented Oct 31, 2017

@cpsievert Thanks! I'll investigate it tomorrow.

@yihui yihui mentioned this issue Oct 31, 2017
3 tasks
@yihui yihui added this to the v1.7 milestone Oct 31, 2017
@yihui
Copy link
Member

yihui commented Oct 31, 2017

This issue should be resolved now. Again:

devtools::install_github("rstudio/rmarkdown")

This should work with Pandoc 2.0. Thanks for the testing!

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants