R/system.R

Defines functions get_graphics_api_version internalsID get_internals_id

Documented in get_graphics_api_version get_internals_id

#' Query UUID identifying the version of the R API
#'
#' Packages need to be recompiled if this id changes.
#'
#' @export
#' @return String, a UUID.
#' @examples
#' get_internals_id()

get_internals_id <- function() {
  get(".Internal", baseenv())(internalsID())
}

internalsID <- function() NULL

#' Query the version of the graphics API
#'
#' A package compiled with a certain version of the graphics API
#' will not work with R installations that use a different version.
#'
#' @export
#' @return An integer scalar, the version of the graphics API of this
#' R version.
#' @examples
#' get_graphics_api_version()

get_graphics_api_version <- function() {
  .Call(pkgcache_graphics_api_version)
}

Try the pkgcache package in your browser

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

pkgcache documentation built on July 26, 2023, 5:44 p.m.