Explorar el Código

anim_options_set() without argument resets global options

pkg-add-anim-opts-fixed
Garrick Aden-Buie hace 7 años
padre
commit
1e23c86f76
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      R/animate_options.R
  2. +1
    -1
      man/anim_options.Rd

+ 1
- 1
R/animate_options.R Ver fichero

#' @describeIn anim_options Set default animation options for the current session. #' @describeIn anim_options Set default animation options for the current session.
#' @param anim_opts An [anim_options()] options list. #' @param anim_opts An [anim_options()] options list.
#' @export #' @export
anim_options_set <- function(anim_opts) {
anim_options_set <- function(anim_opts = anim_options()) {
stopifnot(is.anim_opts(anim_opts)) stopifnot(is.anim_opts(anim_opts))
ao_old <- plot_settings$anim_opts ao_old <- plot_settings$anim_opts
plot_settings$anim_opts <- merge(anim_opts, plot_settings$anim_opts) plot_settings$anim_opts <- merge(anim_opts, plot_settings$anim_opts)

+ 1
- 1
man/anim_options.Rd Ver fichero

exit = NULL, text_family = NULL, title_family = NULL, exit = NULL, text_family = NULL, title_family = NULL,
text_size = NULL, title_size = NULL, ...) text_size = NULL, title_size = NULL, ...)


anim_options_set(anim_opts)
anim_options_set(anim_opts = anim_options())
} }
\arguments{ \arguments{
\item{transition_length}{The relative length of the transition. Will be \item{transition_length}{The relative length of the transition. Will be

Cargando…
Cancelar
Guardar