Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handle svg through native {knitr} option #2

Open
jooyoungseo opened this issue Aug 17, 2023 · 3 comments
Open

Better handle svg through native {knitr} option #2

jooyoungseo opened this issue Aug 17, 2023 · 3 comments
Assignees

Comments

@jooyoungseo
Copy link
Member

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.

@jooyoungseo jooyoungseo self-assigned this Aug 17, 2023
@jooyoungseo
Copy link
Member Author

Need to use options(knitr.chunk.dev = 'svglite') and knitr.svg.object = TRUE.

@jooyoungseo
Copy link
Member Author

We can also assign id to the current chunk via out.extra='id="my-plot"' See yihui/knitr#2152

@jooyoungseo
Copy link
Member Author

See also, fig.id option at https://yihui.org/knitr/options/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant