r-lib / ymlthis

write YAML for R Markdown, bookdown, blogdown, and more
https://ymlthis.r-lib.org/
Other
164 stars 10 forks source link

ymlthis::code_chunk - chunk_args #75

Closed Polkas closed 2 years ago

Polkas commented 2 years ago

chunk_args argument in the ymlthis::code_chunk is not accepting characters, they are convert to names.

# "STH" -> STH
ymlthis::code_chunk(knitr::include_graphics(system.file("img", "Rlogo.png", package="png")), chunk_args = list(fig.cap = "STH"))
#```{r fig.cap = STH}
#knitr::include_graphics(system.file("img", "Rlogo.png", package = "png"))
#```
malcolmbarrett commented 2 years ago

Thanks!