diff --git a/API b/API index 480056898..43fc16c41 100644 --- a/API +++ b/API @@ -4,6 +4,7 @@ cache_activate(cache_name = NULL) cache_clear(cache_name = NULL, ask = TRUE) +cache_deactivate() cache_info(cache_name = NULL, format = "lucid") create_style_guide(initialize = default_style_guide_attributes, line_break = NULL, space = NULL, token = NULL, indention = NULL, use_raw_indention = FALSE, reindention = tidyverse_reindention()) default_style_guide_attributes(pd_flat) diff --git a/NAMESPACE b/NAMESPACE index af526a6d9..fbd50e386 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -3,6 +3,7 @@ S3method(print,vertical) export(cache_activate) export(cache_clear) +export(cache_deactivate) export(cache_info) export(create_style_guide) export(default_style_guide_attributes) diff --git a/R/ui.R b/R/ui.R index 06fce8b86..fce7bd576 100644 --- a/R/ui.R +++ b/R/ui.R @@ -319,6 +319,7 @@ cache_activate <- function(cache_name = NULL) { } #' @rdname cache_activate +#' @export cache_deactivate <- function() { options("styler.use_cache" = FALSE) options("styler.cache_name" = NULL)