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