R/checkKeyArg.R

Defines functions checkKeyArg

checkKeyArg <- function(assessmentKey, ...) {
  if (missing(assessmentKey)) {
    dots <- list(...)
    if ("key" %in% names(dots)) {
      assessmentKey <- dots$key
      warning("key argument is depreciated, use assessmentKey instead.", call. = FALSE)
    }
  }
  assessmentKey
}
ices-tools-prod/icesSAG documentation built on Nov. 24, 2023, 1:55 a.m.