R/version.R

Defines functions version_complete

# Completes major version to full version
version_complete <- function(minor) {
  versions <- list(
    "6" = "6.2.0",
    "5" = "5.9.2",
    "4" = "4.13.0",
    "3" = "3.5.17"
  )

  version <- versions[[as.character(minor)]]

  if (is.null(version))
    stop("Version ", minor, " is currently unsupported.")

  version
}

Try the r2d3 package in your browser

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

r2d3 documentation built on March 18, 2022, 7:17 p.m.