diff --git a/R/Colombia.R b/R/Colombia.R index 1246c7e9..f5c9fcc2 100644 --- a/R/Colombia.R +++ b/R/Colombia.R @@ -64,7 +64,7 @@ Colombia <- R6::R6Class("Colombia", message_verbose(self$verbose, "Downloading Colombia data. This may take a while.") # RSocrata package is recommended but not required - if (require(RSocrata, attach.required = TRUE)) { + if (requireNamespace(RSocrata, quietly = self$verbose)) { self$data$raw$main <- RSocrata::read.socrata(self$data_urls[["main"]]) } else { # If the RSocrata package is not available, we download the full wide diff --git a/inst/WORDLIST b/inst/WORDLIST index d197220c..1c0d49b7 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -30,6 +30,7 @@ COVID covidregionaldata cre CSSE +csv ctb currrently DataClass diff --git a/man/Colombia.Rd b/man/Colombia.Rd index 8fbbdf6d..f8228ff5 100644 --- a/man/Colombia.Rd +++ b/man/Colombia.Rd @@ -5,8 +5,6 @@ \title{Colombia Class for downloading, cleaning and processing notification data} \source{ \url{https://www.datos.gov.co/Salud-y-Protecci-n-Social/Casos-positivos-de-COVID-19-en-Colombia/gt2j-8ykr} - -\url{https://github.com/danielcs88/colombia_covid-19/} } \description{ Information for downloading, cleaning @@ -109,6 +107,8 @@ Set up a table of region codes for clean data \if{latex}{\out{\hypertarget{method-download}{}}} \subsection{Method \code{download()}}{ Colombia specific download using Socrata API +This uses the \code{RSocrata} package if it is installed or downloads +a much larger csv file if that package is not available. \subsection{Usage}{ \if{html}{\out{