R/r_version.R

Defines functions current_r_version

Documented in current_r_version

#' Get the current R version
#'
#' The version is returned as a string in the format `"major.minor.patch"` (e.g., `"4.4.0"`),
#' using components from `R.version`.
#'
#' @return A character string representing the full R version.
#' @export
#'
#' @examples
#' current_r_version()
current_r_version <- function() {
  paste0(R.version$major, '.', R.version$minor)
}

Try the manifesto package in your browser

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

manifesto documentation built on May 6, 2026, 1:06 a.m.