repo_upload_prj_packages: Builds and uploads project package(s) into the repository.

Description Usage Arguments Details See Also Examples

Description

Builds and uploads project package(s) into the repository.

Usage

1
2
3
repo_upload_prj_packages(repo_manager, pkgs = NULL, prj = NULL,
  skip_rc = FALSE, pkg_type = .Platform$pkgType, with_deps = FALSE,
  skip_build_steps = NULL)

Arguments

repo_manager

repo manager to use for uploading. (type: rsuite_repo_manager)

pkgs

vector of project packages which should be uploaded into the repository or NULL to upload 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)

skip_rc

if TRUE skip detection of package revision and package tagging. (type: logical, default: FALSE)

pkg_type

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

with_deps

If TRUE will include pkgs dependencies while uploading into the repository. Packages in repository satisfying pkgs requirements will not be included. (type: logical, default: FALSE)

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

If not specified to skip RC it will detect revision version and tag packages before uploading. In that case, a check for changes in the project sources is performed for consistency and project packages will be rebuilt with version altered: revision will be added as the least number to package version.

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

See Also

Other in repository management: repo_mng_init, repo_mng_list, repo_mng_remove, repo_mng_start, repo_mng_stop, repo_upload_bioc_package, repo_upload_ext_packages, repo_upload_github_package, repo_upload_package_files, repo_upload_pkgzip

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  # create exemplary project base folder
  prj_base <- tempfile("example_")
  dir.create(prj_base, recursive = TRUE, showWarnings = FALSE)

  # start src project
  src_prj <- prj_start("my_project_src", skip_rc = TRUE, path = prj_base)

  # create project package
  prj_start_package("mypackage", prj = src_prj, skip_rc = TRUE)

  # build project environment
  prj_install_deps(prj = src_prj)

  # start dest project
  dst_prj <- prj_start("my_project_dst", skip_rc = TRUE, path = prj_base)

  # set dest to use in project repository and CRAN
  prj_config_set_repo_adapters(c("Dir", "CRAN"), prj = dst_prj)

  # start managing in project repository
  rmgr <- repo_mng_start("Dir", prj = dst_prj, ix = 1)

  # upload mypackage from src into dest's in project repository
  repo_upload_prj_packages(rmgr, prj = src_prj, skip_rc = TRUE)

  # list available packages
  repo_mng_list(rmgr)

  # stop repository management
  repo_mng_stop(rmgr)

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