getpk: use HTTPS to clone a package from Bioconductor git

getpkR Documentation

use HTTPS to clone a package from Bioconductor git

Description

use HTTPS to clone a package from Bioconductor git

Usage

getpk(x, branch = "RELEASE_3_15", nuke_inst_doc = TRUE)

Arguments

x

character(1) package name expected to be a Bioconductor package in git

branch

character(1) "RELEASE_3_15" is default

nuke_inst_doc

logical(1) defaults to TRUE ... to avoid pkgbuild::build query, remove inst/doc

Value

result of system()

Note

Oct 2022 added –depth 1 to git clone command

Examples

td = tempdir()
wd = getwd()
setwd(td)
lk = getpk("parody")
if (FALSE) lk2 = try(getpk("parody_z")) # should fail
setwd(wd)

vjcitn/BiocBuildTools documentation built on March 15, 2024, 4:19 a.m.