Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

238 genus family lookup #239

Merged
merged 11 commits into from
Aug 13, 2024
7 changes: 5 additions & 2 deletions R/state_diversity_counts.R
Original file line number Diff line number Diff line change
@@ -26,8 +26,11 @@
#'
#' @examples
#' \donttest{state_diversity_counts(state = "NSW")}
state_diversity_counts <- function(state, resources = load_taxonomic_resources()) {
if (is.null(resources)) {

state_diversity_counts <- function(state,
resources = load_taxonomic_resources()) {

if(is.null(resources)){
message("Not finding taxonomic resources; check internet connection?")
return(NULL)
}
@@ -108,8 +111,8 @@
get_apc_genus_family_lookup <-
function(genus, resources = load_taxonomic_resources()) {
if (is.null(resources)) {
message("Not finding taxonomic resources; check internet connection?")
return(NULL)

Check warning on line 115 in R/state_diversity_counts.R

Codecov / codecov/patch

R/state_diversity_counts.R#L114-L115

Added lines #L114 - L115 were not covered by tests
}
fam_lu <- create_apc_genus_family_lookup(resources = resources)
lu <- dplyr::tibble(genus = genus) %>%