Loads package from the Bioconductor repository, packages it into package file and builds a PKGZIP out of it. It uses the project to detect repositories to look for dependencies and to detect rversion if required.
pkgzip_build_bioc_package(repo, ..., prj = NULL,
pkg_type = .Platform$pkgType, path = getwd(), with_deps = FALSE,
filter_repo = NULL, skip_build_steps = NULL, keep_sources = FALSE)
repository address in format [username:password@][release/]repo[#revision]. See
devtools::install_bioc
for more information.
Bioconductor specific parameters passed to devtools::install_bioc
.
project object to use. If not passed will init project from working directory. (type: rsuite_project, default: NULL)
type of packages to build (type: character, default: platform default)
folder path to put output zip into. The folder must exist.
(type: character: default: getwd()
)
If TRUE will include dependencies pkgs dependencies into final zip. (type: logical, default: FALSE)
repository address to not include dependencies available in. If NULL will not filter dependencies. Will be omitted if with_deps is FALSE. (type: character(1), default: NULL)
character vector with steps to skip while building project packages. Can contain following entries:
Process packages specifics
Try build documentation with roxygen
Perform imports validation
Run package tests
Run rppAttribs on the package
Build package vignettes
(type: character(N), default: NULL).
if TRUE downloaded package sources will not be removed after building. (type: logical, default: FALSE)
created pkgzip file path (invisible).
Logs all messages onto rsuite logger. Use logging::setLevel
to control logs
verbosity.
Other in PKGZIP building: pkgzip_build_ext_packages
,
pkgzip_build_github_package
,
pkgzip_build_package_files
,
pkgzip_build_prj_packages
# NOT RUN {
# create exemplary project base folder
prj_base <- tempfile("example_")
dir.create(prj_base, recursive = TRUE, showWarnings = FALSE)
# start project
prj <- prj_start("my_project", skip_rc = TRUE, path = prj_base)
# build PKGZIP with logging package from cran repository
pkgzip_fpath <- pkgzip_build_bioc_package("BiocGenerics", prj = prj, path = tempdir())
# list content of pkgzip created
unzip(pkgzip_fpath, list = TRUE)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab