R/deprecated_functions.R

Defines functions get_emedyd standardize_country_name finalize_country_name coordinate_precision mark_duplicates

Documented in coordinate_precision finalize_country_name get_emedyd mark_duplicates standardize_country_name

#' @name deprecated_functions
#' @title Deprecated functions
#'
#' @description Run them anyway to get some information about their replacements
#' or why they were removed.
#'
#' @param ... ...
#'

#' @rdname deprecated_functions
#' @export
mark_duplicates <- function(...) {
  stop(
    "This function is deprecated. remove_duplicates() includes this functionality now. ",
    "Please use remove_duplicates() with mark_only = TRUE if you only want to ",
    "retrieve the duplicate_group column. ",
    "Check '?duplicates' for more information."
  )
}

#' @rdname deprecated_functions
#' @export
coordinate_precision <- function(...) {
  stop(
    "This function was removed from c14bazAAR without a replacement. ",
    "The functionality was not essential and the calculated precision values ",
    "probably frequently misleading."
  )
}

#' @rdname deprecated_functions
#' @export
finalize_country_name <- function(...) {
  stop(
    "This function was removed from c14bazAAR without a replacement. ",
    "It was a confusing wrapper that can be very easily reimplemented."
  )
}

#' @rdname deprecated_functions
#' @export
standardize_country_name <- function(...) {
  stop(
    "This function was renamed to fix_database_country_name()"
  )
}

#' @rdname deprecated_functions
#' @export
get_emedyd <- function(...) {
  stop(
    "The emedyd database was removed from c14bazAAR, because it was ",
    "superseded by the nerd database."
  )
}
ISAAKiel/c14bazAAR.mirror documentation built on April 29, 2021, 3:03 p.m.