R/makePkgUrl.R

Defines functions makePkgUrl

Documented in makePkgUrl

makePkgUrl <- function(pMat, type=getOption("pkgType")) {
    pkg <- paste(pMat[, "Package"], pMat[, "Version"], sep="_")
    ext <- switch(type,
                  source="tar.gz",
                  win.binary="zip",
                  mac.binary="tgz")
    pkg <- paste(pkg, ext, sep=".")
    paste(pMat[, "Repository"], pkg, sep="/")
}

Try the pkgDepTools package in your browser

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

pkgDepTools documentation built on Nov. 8, 2020, 5:24 p.m.