Skip to content

Commit

Permalink
Suppressed warnings from APCalign #87
Browse files Browse the repository at this point in the history
  • Loading branch information
fontikar committed Feb 28, 2024
1 parent aff1193 commit 81199c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/galah_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ retrieve_data <- function(taxon,
get_establishment_status <- function(ala_cleaned, taxon = taxon) {
if (taxon == "Plantae") {
resources <- APCalign::load_taxonomic_resources()
suppressWarnings(
lookup <-
APCalign::native_anywhere_in_australia(unique(ala_cleaned$Species), resources = resources)
)

lookup <- dplyr::rename(lookup, Species = species)

ala_cleaned <-
ala_cleaned |> dplyr::left_join(lookup, by = dplyr::join_by("Species"))

return(ala_cleaned)
}
if (taxon %in% c("Cicadoidea", "Marsupialia", "Odonata", "Papilionoidea")) {
ala_cleaned$native_anywhere_in_aus <- "native"
Expand Down

0 comments on commit 81199c2

Please sign in to comment.