From 10e0cd1b0c85730413baf626c4edfd07852fcf57 Mon Sep 17 00:00:00 2001 From: Raphael Saldanha Date: Mon, 17 Jun 2024 12:02:39 +0200 Subject: [PATCH] Change curl timeout argument --- R/fetch_datasus.R | 2 +- man/fetch_datasus.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/fetch_datasus.R b/R/fetch_datasus.R index 8c9ab72..840d366 100644 --- a/R/fetch_datasus.R +++ b/R/fetch_datasus.R @@ -28,7 +28,7 @@ #' #' The files are downloaded to a temporary folder and deleted after the reading process. #' -#' @examplesIf curl::has_internet() & RCurl::url.exists("ftp.datasus.gov.br", .opts = list(timeout.ms = 100)) +#' @examplesIf curl::has_internet() & RCurl::url.exists("ftp.datasus.gov.br", .opts = list(timeout = 3)) #' # Fetch two years of data from SIM-DO #' fetch_datasus(year_start = 2010, year_end = 2011, #' information_system = "SIM-DO") diff --git a/man/fetch_datasus.Rd b/man/fetch_datasus.Rd index 6cb2c7e..cb521aa 100644 --- a/man/fetch_datasus.Rd +++ b/man/fetch_datasus.Rd @@ -61,7 +61,7 @@ The files are downloaded to a temporary folder and deleted after the reading pro } \examples{ -\dontshow{if (curl::has_internet() & RCurl::url.exists("ftp.datasus.gov.br", .opts = list(timeout.ms = 100))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} +\dontshow{if (curl::has_internet() & RCurl::url.exists("ftp.datasus.gov.br", .opts = list(timeout = 3))) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} # Fetch two years of data from SIM-DO fetch_datasus(year_start = 2010, year_end = 2011, information_system = "SIM-DO")