pkgzip_build_prj_packages: Builds PKGZIP out of project packages.

Description Usage Arguments Details Value See Also Examples

Description

Builds PKGZIP out of project packages.

Usage

1
2
3
pkgzip_build_prj_packages(pkgs = NULL, prj = NULL, zip_ver = NULL,
  pkg_type = .Platform$pkgType, path = getwd(), with_deps = FALSE,
  filter_repo = NULL, skip_build_steps = NULL)

Arguments

pkgs

vector of project packages which should be included in PKGZIP or NULL to include all project packages (type: character, default: NULL)

prj

project object to use. If not passed will init project from working directory. (type: rsuite_project, default: NULL)

zip_ver

if passed enforce the version of PKGZIP package to the passed value. Expected form of version is DD.DD. (type: character, default: NULL)

pkg_type

type of packages to build (type: character, default: platform default)

path

folder path to put output zip into. The folder must exist. (type: character: default: getwd())

with_deps

If TRUE will include dependencies pkgs dependencies into final zip. (type: logical, default: FALSE)

filter_repo

repository address to not include dependencies available in. In a project, dependencies will never be filtered. If NULL will not filter dependencies. Will be omitted if with_deps is FALSE. (type: character(1), default: NULL)

skip_build_steps

character vector with steps to skip while building project packages. Can contain following entries:

specs

Process packages specifics

docs

Try build documentation with roxygen

imps

Perform imports validation

tests

Run package tests

rcpp_attribs

Run rppAttribs on the package

vignettes

Build package vignettes

(type: character(N), default: NULL).

Details

PKGZIP will be tagged with the same way as project zip.

Logs all messages onto rsuite logger. Use logging::setLevel to control logs verbosity.

Value

created pkgzip file path (invisible).

See Also

Other in PKGZIP building: pkgzip_build_bioc_package, pkgzip_build_ext_packages, pkgzip_build_github_package, pkgzip_build_package_files

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
  # 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)

  # start package in my_project
  prj_start_package("mypackage", skip_rc = TRUE, prj = prj)

  # build project environment and install supportives
  prj_install_deps(prj = prj, vanilla_sups = TRUE)

  # build PKGZIP
  pkgzip_fpath <- pkgzip_build_prj_packages(prj = prj, path = tempdir())

  # list content of pkgzip created
  unzip(pkgzip_fpath, list = TRUE)

RSuite documentation built on June 10, 2019, 5:03 p.m.