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
thomasp85/gganimate documentation built on Feb. 29, 2024, 11:16 p.m.