microsoft / RTVS

R Tools for Visual Studio.
MIT License
389 stars 118 forks source link

Can not preview PDF for bookdown project #4305

Open hysci opened 6 years ago

hysci commented 6 years ago

It was OK to preview/generate PDF files from bookdown project, such as https://github.com/rstudio/bookdown-demo.git, this proven that the environment in my computer was OK. (RStudio 1.1.442 + Miktex 2.9.6637 + pandoc 2.1.3)

However, when I used the latest RTVS + Visual studio 2017 (updated to Apr. 5th, 2018), I failed to preview PDF (R Tools -> Markdown -> Preview PDF)

R evaluation failed:
rtvs:::rmarkdown_publish(blob_id = 2, output_format = "pdf_document", encoding = 'cp65001')
Error: Failed to compile rmd_292c2548169b.tex

The (R Tools -> Markdown -> Preview PDF) seemed OK previewing "index.Rmd", but it only showed the single html file, not the whole book.

timothymodel commented 6 years ago

Did you figure out what the problem was? I'm struggling to resolve this issue as well.