R/urls.R

Defines functions r_macos_download_url r_win_download_url r_download_url cran_url r_svn_url

r_svn_url <- function() {
  "https://svn.r-project.org/R/tags/"
}

cran_url <- function() {
  if (nzchar(Sys.getenv("R_RVERSIONS_CRAN_URL"))){
    Sys.getenv("R_RVERSIONS_CRAN_URL")
  } else {
    "https://cran.r-project.org"
  }
}

r_download_url <- function() {
  paste0(cran_url(), "/src/base/R-4/")
}

r_win_download_url <- function() {
  paste0(cran_url(), "/bin/windows/base/")
}

r_macos_download_url <- function() {
  paste0(cran_url(), "/bin/macosx/base/")
}

Try the rversions package in your browser

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

rversions documentation built on May 31, 2021, 5:08 p.m.