microsoft / RTVS

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

RTVS rmarkdown does not compile pdf files #4336

Open leox3107 opened 5 years ago

leox3107 commented 5 years ago

Please briefly describe what you were doing that led to the issue, if applicable:

RTVS fail to compile pdf files

R markdown fails to compile pdf files. I have tested this error with various rmarkdown files. The typical error message is

_rtvs::rmarkdown_publish(blob_id = 2, output format = “pdfdocument”, encoding = “cp65001”. the option encoding = "cp...." varies with different files.

If you have any screenshots demonstrating the issue, please include them as well to help us diagnose it better.

Additional information:

OS Information Version: Microsoft Windows NT 10.0.17134.0

RTVS Information: Assembly: Microsoft.VisualStudio.R.Package, Version=1.3.40517.1016, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

Active R URI: Microsoft R Open (3.5.1.0): C:\Program Files\Microsoft\R Open\R-3.5.1\

shumchi commented 5 years ago

Problem

I usually use rmarkdown to write my statistic analysis report, but I can not compile my rmd file to pdf successfully by RTVS, but it works in R or MRO console when use render() function in rmarkdown package.

Error

_20190108112702

Note: I wrote both Chinese and English in my rmarkdown, however, I also fail to compile rmd to pdf in RTVS even if I only write English in rmarkdown.

Additional information:

OS Information Version: Microsoft Windows NT 10.0.17134.0

RTVS Information: Version=1.3.40517.1016

Active R URI: Microsoft R Open (3.5.1.0): C:\Program Files\Microsoft\R Open\R\