Headers in Knitr

前端 未结 1 1200
太阳男子
太阳男子 2021-01-20 02:53

Is there a way to use knitr from within the R console (not RStudio) to process a header. There are many examples using YAML headers such as:

---
tit         


        
相关标签:
1条回答
  • 2021-01-20 03:17

    No, the YAML metadata is specific to R Markdown v2, i.e. the rmarkdown package. The knitr::knit2html() function is for R Markdown v1 only.

    0 讨论(0)
提交回复
热议问题