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

Add in knitr support #29

Closed
csgillespie opened this issue Mar 18, 2020 · 2 comments
Closed

Add in knitr support #29

csgillespie opened this issue Mar 18, 2020 · 2 comments

Comments

@csgillespie
Copy link

csgillespie commented Mar 18, 2020

This issue #17 asked about knitr hooks for ragg. Having the following header:

ragg_png = function(..., dpi = 192) ragg::agg_png(..., res = dpi, units = 'in')
knitr::opts_chunk$set(dev = "ragg_png", fig.ext = "png")

makes the magic work.

  • Is worth creating knitr_ragg functions inside ragg?
  • If not, probably worth adding this to the README (or some other doc)
  • I suppose it might be worth adding ragg to knitr, but this is up to @yihui

Happy to make PRs for points 1 & 2 above

@yutannihilation
Copy link
Contributor

Maybe did you mention a wrong person...?

@csgillespie
Copy link
Author

@yutannihilation Sorry. Autocomplete!

yihui pushed a commit to yihui/knitr that referenced this issue Apr 18, 2020
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

3 participants