R/last_change_date.R

Defines functions last_change_date

Documented in last_change_date

#' Provides the date the ITIS database was last updated
#'
#' @export
#' @inheritParams accepted_names
#' @return character value with a date
#' @examples \dontrun{
#' last_change_date()
#' last_change_date(wt = "xml")
#' }
last_change_date <- function(wt = "json", raw = FALSE, ...) {
  out <- itis_GET("getLastChangeDate", list(), wt, ...)
  if (raw || wt == "xml") return(out)
  parse_raw(out)$updateDate
}
ropensci/ritis documentation built on Feb. 7, 2025, 1:25 a.m.