rstudio / rmarkdown-cookbook

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
https://bookdown.org/yihui/rmarkdown-cookbook/
584 stars 225 forks source link

Section 4.2 Revision #377

Closed timothytsai closed 2 years ago

timothytsai commented 2 years ago

Looks like Section 4.2, setting titles dynamically will no longer work with rmarkdown 2.13+, some info at https://github.com/rstudio/rmarkdown/issues/2343.

cderv commented 2 years ago

The example in the doc works ok for me with dev version of rmarkdown (2.14.3)

Did you encounter an issue with it ?

timothytsai commented 2 years ago

Confirmed, works on 2.14.3 and 2.14. Not sure what happened there.

I was getting a pandoc error 64 when I had the title parameter split off from the main YAML chunk. Adding line breaks around the dashes --- allowed it to be rendered, but as text, not a title.