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

How to "catch" the .gif output created by gganimate upon evaluation? #503

Closed
MichelNivard opened this issue Oct 24, 2024 · 1 comment
Closed

Comments

@MichelNivard
Copy link

I am writing a mini R REPL for use in contexts where a full IDE (e.g.RStudio/postron) isn't appropriate/feasible.

Within the REPL I have been evaluating user code with the evaluate() function in the evaluate library. However, if the user were to user 'gganimate' elements with their ggplot(), there is no recordedPlot after evaluatino that I can save/store/present, rather a .gif is saved to the tmpdir.

Ideally i'd catch that .gif, much like the RStudio viewer pane does. I'd Ideally do this without having to inject custom R code onto the tail of the user code to fix the save location if gganimate is used as thatw ould require all kinds of custom processing of the user code to dete ct gganimate was used. Arer there any obvvious ways in which I can catch the tempfile created by gganimate?

@MichelNivard
Copy link
Author

I got it to work with minimal post-process, never mind

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