Construct MRAN url if snapshot date provided

construct_mran_url(mran_date = NULL, cran_like_url = NULL)

Arguments

mran_date

MRAN snapshot date (e.g. "2019-08-05")

cran_like_url

url to CRAN-like repository

Value

CRAN-like url

Examples

construct_mran_url(mran_date = "2019-08-05")
#> https://cran.microsoft.com/snapshot/2019-08-05
construct_mran_url(cran_like_url = "https://cloud.r-project.org")
#> [1] "https://cloud.r-project.org"