Skip to content

Commit

Permalink
Avoid deprecated purrr::cross_df
Browse files Browse the repository at this point in the history
See #102
  • Loading branch information
damianooldoni committed Jun 26, 2024
1 parent 920543d commit 3e3ddd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/gbif_has_distribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ gbif_has_distribution <- function(taxon_key, ...) {
# Check whether at least one property defined by user is present
has_distr <- dplyr::intersect(
user_properties %>%
purrr::cross_df(),
tidyr::expand_grid() %>%
purrr::pluck(1) %>%
dplyr::as_tibble(),
distr_properties %>%
dplyr::select(names(user_properties)) %>%
dplyr::distinct() %>%
Expand Down

0 comments on commit 3e3ddd8

Please sign in to comment.