how to access yaml metadata from knitr

前端 未结 1 1683
陌清茗
陌清茗 2021-01-04 19:56

Does knitr know the value of YAML data e.g. title: or date: or some_custom_field: while it is compiling an rmarkdown doc with a YAML header?

I would like to be able

相关标签:
1条回答
  • 2021-01-04 20:12

    That is stored in rmarkdown::metadata as a list of the form list(title = ...).

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