File: last_change_date.R

package info (click to toggle)
r-cran-ritis 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,156 kB
  • sloc: sh: 13; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#' 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
}