Skip to content

Commit

Permalink
missed two checking spots
Browse files Browse the repository at this point in the history
  • Loading branch information
wcornwell committed Jul 31, 2024
1 parent adfee1c commit 281fbe5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/create_species_state_origin_matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#'
#'
create_species_state_origin_matrix <- function(resources = load_taxonomic_resources()) {

if(is.null(resources)){
message("Not finding taxonomic resources; check internet connection?")
return(NULL)
Expand Down
6 changes: 6 additions & 0 deletions R/state_diversity_counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
#' \donttest{state_diversity_counts(state = "NSW")}
state_diversity_counts <- function(state,
resources = load_taxonomic_resources()) {

if(is.null(resources)){
message("Not finding taxonomic resources; check internet connection?")
return(NULL)
}

valid_inputs <- c(
"NSW",
"NT",
Expand Down
5 changes: 5 additions & 0 deletions R/update_taxonomy.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ update_taxonomy <- function(aligned_data,
output = NULL,
resources = load_taxonomic_resources()) {

if(is.null(resources)){
message("Not finding taxonomic resources; check internet connection?")
return(NULL)
}

aligned_data <-
aligned_data %>%
dplyr::select(original_name, aligned_name, taxon_rank, taxonomic_dataset, aligned_reason) %>%
Expand Down

0 comments on commit 281fbe5

Please sign in to comment.