Skip to content

Commit

Permalink
adding a unique to hopefully avoid memory blow out
Browse files Browse the repository at this point in the history
  • Loading branch information
wcornwell committed Oct 6, 2023
1 parent 128f569 commit 35c1316
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by roxygen2: do not edit by hand
remotes::install_github("traitecoevo/infinitylists")# Generated by roxygen2: do not edit by hand

export(download_ala_obs)
export(infinity_server)
Expand Down
23 changes: 11 additions & 12 deletions R/galah_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ get_establishment_status <- function(ala_cleaned, taxon = taxon) {
if (taxon == "Plantae") {
resources <- APCalign::load_taxonomic_resources()
lookup <-
APCalign::native_anywhere_in_australia(ala_cleaned$Species, resources = resources)
APCalign::native_anywhere_in_australia(unique(ala_cleaned$Species), resources = resources)

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

Expand Down Expand Up @@ -258,14 +258,13 @@ save_data <- function(data, taxon, output_dir) {
))
}

# galah_config(email = Sys.getenv("ALA_EMAIL"),
# atlas = "Australia")
#
# requireNamespace("job", quietly = TRUE)
# job::job(packages = c("purrr", "dplyr", "arrow", "janitor", "galah", "stringr", "lubridate", "infinitylists"), {
# download_ala_obs(taxon = "Papilionoidea")
# download_ala_obs(taxon = "Odonata")
# download_ala_obs(taxon = "Marsupialia")
# download_ala_obs(taxon = "Cicadoidea")
# download_ala_obs(taxon = "Plantae")
# })
# galah::galah_config(email = "[email protected]")
#
# requireNamespace("job", quietly = TRUE)
# job::job(packages = c("purrr", "dplyr", "arrow", "janitor", "galah", "stringr", "lubridate", "infinitylists"), {
# download_ala_obs(taxon = "Papilionoidea")
# download_ala_obs(taxon = "Odonata")
# download_ala_obs(taxon = "Marsupialia")
# download_ala_obs(taxon = "Cicadoidea")
# download_ala_obs(taxon = "Plantae")
# })

0 comments on commit 35c1316

Please sign in to comment.