Skip to content

Commit

Permalink
Replace require with requireNamespace in Colombia.R
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardMN committed Dec 1, 2021
1 parent e14e767 commit c2de6c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/Colombia.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ COVID
covidregionaldata
cre
CSSE
csv
ctb
currrently
DataClass
Expand Down
4 changes: 2 additions & 2 deletions man/Colombia.Rd

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

0 comments on commit c2de6c8

Please sign in to comment.