R/check.deprecated.R

Defines functions check.deprecated

check.deprecated <- function(...) {
  # print warnings for deprecated argument names
  nms <- names(list(...))
  replace.args <- list(imputationMethod = "method",
                       defaultImputationMethod = "defaultMethod",
                       form = "formulas")
  
  wrn <- names(replace.args) %in% nms
  if(any(wrn)) {
    for(i in which(wrn)) {
      msg <- paste0("The '", names(replace.args)[i], 
                    "' argument is no longer supported. Please use '",
                    replace.args[i], "' instead.")
      warning(msg)
    }
  }
  
  invisible(NULL)
}

Try the mudfold package in your browser

Any scripts or data that you put into this service are public.

mudfold documentation built on Nov. 24, 2022, 5:09 p.m.