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
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.
knitr::knit2html()