Skip to content

Commit

Permalink
Defunct: check_species() and get_scientific_name()
Browse files Browse the repository at this point in the history
Fix #235
  • Loading branch information
damianooldoni committed Nov 20, 2024
1 parent f8c899f commit b25eadb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 144 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ This is a major release that updates the internal data model to Camtrap DP 1.0 a
- Function `get_species()` is now deprecated. Use `taxa()` (#343).
- Function `get_n_species()` is now deprecated. Use `n_species()` (#243).
- Function `map_dep()` is now deprecated. Use `map_deployments()` (#231).
- Filter predicates (`apply_filter_predicate()`, `pred()` `pred_not()` `pred_gt()`, `pred_and()`, `pred_or()`, etc.) are now defunct. Use `filter_deployments()` (#316).
- Arguments `sex` and `life_stage` are now deprecated in (deprecated) `map_dep()`. Use `filter_observations()` beforehand.
- The functions `get_scientific_name()` and `check_species()` are now defunct. Use `taxa()` for an overview of all species (#235).
- Filter predicates (`apply_filter_predicate()`, `pred()` `pred_not()` `pred_gt()`, `pred_and()`, `pred_or()`, etc.) are now defunct. Use `filter_deployments()` (#316).
- The deprecated argument `datapkg` in `read_camtrap_dp()` is removed.
- `write_dwc()` has moved to [camtrapdp](https://inbo.github.io/camtrapdp/reference/write_dwc.html). `write_eml()` is not needed for GBIF processing of Camtrap DPs and has been removed ([camtrapdp#61](https://github.com/inbo/camtrapdp/issues/61)).
- `round_coordinates()` has moved to [camtrapdp](https://inbo.github.io/camtrapdp/reference/round_coordinates.html) (#327).
Expand Down
67 changes: 0 additions & 67 deletions R/check_species.R

This file was deleted.

12 changes: 12 additions & 0 deletions R/defunct.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ apply_filter_predicate <- function(arg, value) {
"apply_filter_predicate()",
"filter_deployments()")
}

#' @export
#' @rdname defunct
check_species <- function(x) {
lifecycle::deprecate_stop("1.0.0", "check_species()", "taxa()")
}

#' @export
#' @rdname defunct
get_scientific_name <- function(x) {
lifecycle::deprecate_stop("1.0.0", "get_scientific_name()", "taxa()")
}
76 changes: 0 additions & 76 deletions R/get_scientific_name.R

This file was deleted.

0 comments on commit b25eadb

Please sign in to comment.