knitr包只能够将R markdown文件转为html格式,若想要将其转化为pdf格式,还要安装另一个包

# Install and load package
install.packages("rmarkdown")
library("rmarkdown")
# Convert
render("../Your_MD_File.md", output_format="pdf_document")

Reference 

http://stackoverflow.com/questions/11025123/how-to-convert-r-markdown-to-pdf

相关文章:

  • 2021-08-19
  • 2021-08-07
  • 2021-09-15
  • 2021-11-18
  • 2021-05-06
  • 2021-10-24
  • 2021-05-20
  • 2022-01-04
猜你喜欢
  • 2021-10-14
  • 2021-10-30
  • 2021-10-14
  • 2022-01-10
  • 2021-10-31
  • 2022-01-14
  • 2022-02-09
相关资源
相似解决方案