R/TNRS_version.R

Defines functions TNRS_version

Documented in TNRS_version

#' Get metadata on current TNRS version
#'
#' Return metadata about the current TNRS version
#' @return Dataframe containing current TNRS version number, build date, and code version.
#' @param skip_internet_check Should the check for internet connectivity be skipped? Default is FALSE.
#' @param ... Additional parameters passed to internal functions
#' @export
#' @examples {
#'   TNRS_version_metadata <- TNRS_version()
#' }
#'
TNRS_version <- function(skip_internet_check = FALSE, ...) {
  # Check for internet access
  if (!skip_internet_check) {
    if (!check_internet()) {
      message("This function requires internet access, please check your connection.")
      return(invisible(NULL))
    }
  }

  results <- TNRS_core(mode = "meta", ...)

  return(results)
} # TNRS version

Try the TNRS package in your browser

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

TNRS documentation built on June 24, 2024, 5:19 p.m.