R/animation_store.R

Defines functions set_last_animation last_animation

Documented in last_animation set_last_animation

.store <- new.env(parent = emptyenv())

#' Retrieve the last rendered animation
#'
#' @export
#' @keywords internal
last_animation <- function() .store$animation
#' @rdname last_animation
#' @export
set_last_animation <- function(value) .store$animation <- value

Try the gganimate package in your browser

Any scripts or data that you put into this service are public.

gganimate documentation built on Sept. 8, 2022, 5:09 p.m.