Skip to content

Commit

Permalink
Add deprecated warning for select_taxa (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
daxkellie committed Dec 15, 2021
1 parent d4f417a commit d9d6157
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export(search_taxa)
export(select_columns)
export(select_filters)
export(select_locations)
export(select_taxa)
export(show_all_atlases)
export(show_all_cached_files)
export(show_all_profiles)
Expand Down
15 changes: 15 additions & 0 deletions R/deprecated_functions.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#' Deprecated functions
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' Use [search_taxa()] instead of `select_taxa()`.
#'
#' @export
#' @name deprecated
select_taxa <- function(query, is_id = FALSE) {
lifecycle::deprecate_warn("2.0.0", "select_taxa()", "search_taxa()")

search_taxa.default(
query = query,
is_id = {if(missing(is_id)){FALSE}else{is_id}})
}

#' @description
#' `r lifecycle::badge("deprecated")`
#'
Expand Down
7 changes: 7 additions & 0 deletions man/deprecated.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9d6157

Please sign in to comment.