无法使用Rmarkdown生成pdf文件

时间:2019-08-02 21:00:40

标签: r r-markdown

我已经花了一天的时间。我可以生成html格式的文件,但不能生成pdf格式的文件。总会有不同的错误。现在,我已经成功安装了“ pdflatex”。但是仍然失败了。

这些是我收到的错误消息:

! Misplaced alignment tab character &.
l.8820 ...ck away: Red line, train N°1. B&
                                                  amp;D trains 10 minutes wa...

Error: Failed to compile Report.tex. See https://yihui.name/tinytex/r/#debugging for debugging tips. See Report.log for more info.

如果您有任何想法,请告诉我

1 个答案:

答案 0 :(得分:0)

尝试将文件导出为HTML格式,在浏览器中打开文件,然后将[{CTRL+P]打印为pdf