Skip to content

Commit

Permalink
adjusted to account for fewer results in bounds. #20
Browse files Browse the repository at this point in the history
  • Loading branch information
emhart committed May 3, 2017
1 parent 51ac7f8 commit b0a8e86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/get_inat_obs.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ get_inat_obs <- function(query=NULL,taxon_name = NULL,taxon_id = NULL,quality=NU
stop("Your search returned zero results. Either your species of interest has no records or you entered an invalid search")
} else if(total_res >= 200000) {
stop("Your search returned too many results, please consider breaking it up into smaller chunks by year or month")
} else if(!is.null(bounds) && total_res >=100000) {
stop("Your search returned too many results, please consider breaking it up into smaller chunks by year or month")
}

page_query <- paste(search,"&per_page=200&page=1",sep="")
Expand Down

0 comments on commit b0a8e86

Please sign in to comment.