Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

Commit

Permalink
Fix errors from GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs committed Dec 11, 2023
1 parent 15e9c69 commit 7b7db9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
4 changes: 1 addition & 3 deletions R/coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
#' @export
lookup_coords <- function(address, components = NULL, apikey = NULL, ...) {
if (missing(address)) stop("must supply address", call. = FALSE)
stopifnot(is.atomic(address) && !is.null(address),
is.atomic(components))
stopifnot(is.atomic(address), is.atomic(components))
stopifnot(is.atomic(address) && !is.null(address))
place <- address
if (grepl("^us$|^usa$|^united states$|^u\\.s",
address, ignore.case = TRUE)) {
Expand Down
9 changes: 0 additions & 9 deletions tests/testthat/test-geo_objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,5 @@ vcr::use_cassette("geo_objects1", {
expect_equal(nrow(out), 1)
expect_equal(ncol(out), 3)
expect_equal(out$type[1], "Point")

# ids of these "faulty" ids:
ids <- c("1462911176719757313", "1462903173656428545",
"1462902964150935558", "1462899130808762371")
# other_ids adjacent (w-1):
other_ids <- c("1462911347801444365", "1462903930090840071",
"1462903173656428545", "1462900536848490499")
all_ids <- unique(c(ids, other_ids))
expect_error(lookup_tweets(all_ids))
})
})

0 comments on commit 7b7db9f

Please sign in to comment.