From 6091a60fbee142c2c25e217ce4eda803d2af38fa Mon Sep 17 00:00:00 2001 From: GeraldineGomez Date: Fri, 22 Nov 2024 09:17:32 -0500 Subject: [PATCH] fix: remove spaces and restore original examples Ref: #206 --- R/import_data.R | 12 ++---------- man/import_data_event.Rd | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/R/import_data.R b/R/import_data.R index bff0f9ff..a6f8cb6c 100644 --- a/R/import_data.R +++ b/R/import_data.R @@ -54,7 +54,6 @@ realizar_peticion_http <- function(url) { #' y municipios de Colombia. #' @examples #' \donttest{ -#' \donttest{ #' import_geo_cods(descargar = FALSE) #' } #' @export @@ -84,10 +83,6 @@ import_geo_cods <- function(descargar = FALSE) { #' if (interactive()) { #' list_events() #' } -#' \donttest{ -#' if (interactive()) { -#' list_events() -#' } #' } #' @export list_events <- function() { @@ -169,18 +164,15 @@ list_events <- function() { #' @examples #' \donttest{ #' if (interactive()) { -#' \donttest{ -#' if (interactive()) { #' import_data_event(nombre_event = "DENGUE", #' years = 2020, -#' ruta_dir = tempdir()) +#' cache = TRUE) #' import_data_event(nombre_event = "CHAGAS", #' years = c(2019, 2020), #' ruta_dir = tempdir()) -#' ruta_dir = tempdir()) #' import_data_event(nombre_event = "CHAGAS", #' years = seq(2018, 2020), -#' ruta_dir = tempdir()) +#' cache = TRUE) #' } #' } #' @export diff --git a/man/import_data_event.Rd b/man/import_data_event.Rd index b34f90ec..0ada0133 100644 --- a/man/import_data_event.Rd +++ b/man/import_data_event.Rd @@ -35,13 +35,13 @@ año desde los microdatos del SIVIGILA. if (interactive()) { import_data_event(nombre_event = "DENGUE", years = 2020, - ruta_dir = tempdir()) + cache = TRUE) import_data_event(nombre_event = "CHAGAS", years = c(2019, 2020), ruta_dir = tempdir()) import_data_event(nombre_event = "CHAGAS", years = seq(2018, 2020), - ruta_dir = tempdir()) + cache = TRUE) } } }