Procházet zdrojové kódy

Add print method for anim_options()

pkg-add-anim-opts-fixed
Garrick Aden-Buie před 7 roky
rodič
revize
54bdceb2a2
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. +9
    -0
      R/plot_helpers.R

+ 9
- 0
R/plot_helpers.R Zobrazit soubor

) )
} }


print.anim_opts <- function(ao) {
aop <- ao
# Replace ggproto (enter/exit functions) with their names
aop$enter <- paste("ggproto:", names(ao$enter))
aop$exit <- paste("ggproto:", names(ao$exit))
str(aop)
invisible(ao)
}

validate_anim_opts <- function(ao, quiet = FALSE, strict = getOption("tidyexplain.strict_dots", FALSE)) { validate_anim_opts <- function(ao, quiet = FALSE, strict = getOption("tidyexplain.strict_dots", FALSE)) {
if (!inherits(ao, "anim_opts")) { if (!inherits(ao, "anim_opts")) {
rlang::warn("Use `anim_options()` to set `anim_opts`") rlang::warn("Use `anim_options()` to set `anim_opts`")

Načítá se…
Zrušit
Uložit