RStudio Knitr failed to convert Rmd to PDF (Windows 7)
问题 I wanted to use RStudio (Version 0.99.903) and knitr to convert a .Rmd file (please see below) to a PDF file. --- title: "test" output: pdf_document --- Roses are \textcolor{red}{red}, violets are \textcolor{blue}{blue}. When I run "Knit PDF" I got the following error message: processing file: test.Rmd output file: test.knit.md ! Undefined control sequence. l.87 Roses are \textcolor pandoc.exe: Error producing PDF Error: pandoc document conversion failed with error 43 In addition: Warning