Open jooyoungseo opened 1 year ago
Need to use options(knitr.chunk.dev = 'svglite')
and knitr.svg.object = TRUE
.
We can also assign id to the current chunk via out.extra='id="my-plot"'
See https://github.com/yihui/knitr/issues/2152
See also, fig.id
option at https://yihui.org/knitr/options/
When rendering maidr through Rmd, current logics don't fall back to knitr's svg options chunk label and id. Rather than passing object$maidr_widget, I need to use knitr option internally.