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

Rmarkdown pdf does not compile #58

Closed
nlpaces opened this issue Apr 21, 2019 · 1 comment
Closed

Rmarkdown pdf does not compile #58

nlpaces opened this issue Apr 21, 2019 · 1 comment
Labels

Comments

@nlpaces
Copy link

nlpaces commented Apr 21, 2019

<
Mac OS; latest versions RStudio/R

Poisson glm model.

Call jtools functions summ() and effect_plot().

All chunks returns expected output in Console.

Knitting to PDF fails.

/Applications/RStudio.app/Contents/MacOS/pandoc/pandoc +RTS -K512m -RTS Enrolled.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output Enrolled.tex --template /Library/Frameworks/R.framework/Versions/3.5/Resources/library/rmarkdown/rmd/latex/default-1.17.0.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'compact-title:yes'
output file: Enrolled.knit.md

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
! Package inputenc Error: Unicode character χ (U+3C7)
(inputenc) not set up for use with LaTeX.

Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. For R Markdown users, see https://bookdown.org/yihui/rmarkdown/pdf-document.html
Error: Failed to compile Enrolled.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Enrolled.log for more info.
Execution halted

Have done all suggested debugging
Enrolled.Rmd.txt

Knitting successful to MS word.

If chunks with jtools function calls set to eval = F, PDF compiles.

Data files attached.

.Rmd file attached in txt format.

Nathan
ForNathanFig1eligible_20190418.xlsx
ForNathanFig1enrolled_20190418.xlsx

Enrolled.Rmd.txt

@nlpaces nlpaces added the bug label Apr 21, 2019
@jacob-long
Copy link
Owner

jacob-long commented May 10, 2019

Thanks a lot for including all of this info to help me.

This is an interesting problem and bear in mind that I'm troubleshooting on Windows. I can't quite replicate the error. I can't get it to compile even if I drop all the jtools stuff. Interestingly, when I set keep_tex = TRUE in the YAML header, I can compile the .tex file it produces.

Since there's probably some weird Windows stuff going on with my machine, I wonder what kind of TeX output you're getting. Can you change the relevant part of the YAML header to include this:

output:
  pdf_document: 
    keep_tex: true

instead of this

output: 
  pdf_document: default

And then send me the .tex file that it creates?

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

No branches or pull requests

2 participants