Skip to content

Commit

Permalink
chore: replaced cache examples with ruta_dir = tempdir()
Browse files Browse the repository at this point in the history
Ref: #206
  • Loading branch information
GeraldineGomez committed Nov 22, 2024
1 parent 8bf8c94 commit bcba50b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 18 deletions.
8 changes: 4 additions & 4 deletions R/checking_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ agrupar_per_etn <- function(data_event, cols_etn = "per_etn",
#' poblacion = "proyecciones",
#' dpto = "05",
#' year = 2020,
#' cache = TRUE
#' ruta_dir = tempdir()
#' )
#' # Cálculo de la incidencia con proyecciones poblacionales por municipio
#' calcular_incidencia(
Expand All @@ -929,7 +929,7 @@ agrupar_per_etn <- function(data_event, cols_etn = "per_etn",
#' poblacion = "riesgo",
#' data_agrupada = data_agrupada_dptos,
#' year = 2020,
#' cache = TRUE
#' ruta_dir = tempdir()
#' )
#' }
#' @export
Expand Down Expand Up @@ -1072,7 +1072,7 @@ calcular_incidencia <- function(data_incidencia = NULL,
#' poblacion = "riesgo",
#' data_agrupada = data_agrupada_mpios,
#' year = 2020,
#' cache = TRUE
#' ruta_dir = tempdir()
#' )
#' data_agrupada_dptos <- agrupar_dpto(data_limpia)
#' # Cálculo de la incidencia con proyecciones poblacionales para Colombia
Expand Down Expand Up @@ -1223,7 +1223,7 @@ calcular_incidencia_geo <- function(data_incidencia = NULL,
#' data_agrupada = data_agrupada,
#' dpto = "05",
#' year = 2020,
#' cache = TRUE
#' ruta_dir = tempdir()
#' )
#' #' Cálculo de la incidencia con proyecciones poblacionales por sexo y
#' # municipio
Expand Down
6 changes: 3 additions & 3 deletions R/import_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ list_events <- function() {
#' if (interactive()) {
#' import_data_event(nombre_event = "DENGUE",
#' years = 2020,
#' cache = TRUE)
#' ruta_dir = tempdir())
#' import_data_event(nombre_event = "CHAGAS",
#' years = c(2019, 2020),
#' ruta_dir = tempdir())
#' import_data_event(nombre_event = "CHAGAS",
#' years = seq(2018, 2020),
#' cache = TRUE)
#' ruta_dir = tempdir())
#' }
#' }
#' @export
Expand Down Expand Up @@ -321,7 +321,7 @@ import_sep_data <- function(ruta_data = NULL,
#' \donttest{
#' # Importación proyecciones poblaciones DANE
#' import_pob_incidencia(poblacion = "proyecciones", year = 2020,
#' cache = TRUE)
#' ruta_dir = tempdir())
#' # Importación población a riesgo de Dengue del año 2020
#' import_pob_incidencia(poblacion = "riesgo", event = "dengue", year = 2020,
#' ruta_dir = tempdir())
Expand Down
5 changes: 3 additions & 2 deletions R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' plot_map(
#' data_agrupada = data_espacial,
#' col_distribucion = "casos",
#' cache = TRUE
#' ruta_dir = tempdir()
#' )
#' # Mapa por municipios de un departamento especifico
#' data_filtrada_dpto <- geo_filtro(
Expand All @@ -59,7 +59,7 @@
#' col_distribucion = "casos",
#' dpto = "Antioquia",
#' mpio = "Medellin",
#' cache = TRUE
#' ruta_dir = tempdir()
#' )
#' # Mapa con la incidencia por municipios de un departamento específico
#' incidencia_dpto <-
Expand Down Expand Up @@ -1074,6 +1074,7 @@ plot_tabla_tipos_event <- function(data_agrupada,
#' }
#' }
#' @export

plot_years <- function(data_agrupada,
col_year = "ano",
fuente_data = NULL) {
Expand Down
4 changes: 2 additions & 2 deletions man/calcular_incidencia.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/calcular_incidencia_geo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/calcular_incidencia_sex.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/import_data_event.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/import_pob_incidencia.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/plot_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bcba50b

Please sign in to comment.