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

fix: Support 'ani.res' for arbitrary graphic devices #135

Merged
merged 1 commit into from
Jul 21, 2021
Merged

fix: Support 'ani.res' for arbitrary graphic devices #135

merged 1 commit into from
Jul 21, 2021

Conversation

trevorld
Copy link
Contributor

@trevorld trevorld commented Jul 20, 2021

  • Add support for 'ani.res' for arbitrary graphic devices
    in 'saveGIF()', 'saveHTML()', and 'saveVideo()'.
  • Should work for any graphic device function with 'res'
    as an argument. In particular should continue to support R's built-in
    raster image format devices passed as strings as well as now supporting 'ragg::agg_png()'
    and R's built-in devices passed in as a function instead of string.
  • Still no 'ani.res' support in 'saveLatex()' ('pdf' devices recommended)
    nor 'saveSWF()' (flash no longer supported in many browsers)

closes #134

* Add support for 'ani.res' for arbitrary graphic devices
  in 'saveGIF()', 'saveHTML()', and 'saveVideo()'.
* Should work for any graphic device function with 'res'
  as an argument.  In particular should continue to support R's built-in
  raster image format devices as well as 'ragg::agg_png()'
  and R's built-in devices passed in as a function instead of string.
* Still no 'ani.res' support in 'saveLatex()' ('pdf' devices recommended)
  nor 'saveSWF()' (flash no longer supported in many browsers)
* Also fixes bug when 'ani.dev' is a function instead of a character vector

closes #133, closes #134
Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. @yulijia Please feel free to review and merge. Thanks!

@yulijia yulijia merged commit 5195d61 into yihui:master Jul 21, 2021
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

Successfully merging this pull request may close these issues.

'ani.res' option is ignored if 'ani.dev' is 'agg_png'
3 participants