build_publish: build and publish

Description Usage Arguments

View source: R/publish.R

Description

build and publish

Usage

1
2
3
4
build_publish(pkg = ".", binary = FALSE, path = tempdir(),
  repodir = getOption("dratRepo", "~/git/drat"), action = "archive",
  commit = FALSE, vignettes = TRUE, manual = FALSE, args = NULL,
  quiet = FALSE, ...)

Arguments

pkg

package description, can be path or package name. See as.package for more information

binary

Produce a binary (--binary) or source ( --no-manual --no-resave-data) version of the package.

path

path in which to produce package. If NULL, defaults to the parent directory of the package.

repodir

A local directory corresponding to the repository top-level directory.

action

A character string containing one of: “none” (the default; add the new package into the repo, effectively masking previous versions), “archive” (place any previous versions into a package-specific archive folder, creating such an archive if it does not already exist), or “prune” (calling pruneRepo).

commit

Either boolean toggle to select automatic git operations ‘add’, ‘commit’, and ‘push’ or, alternatively, a character variable can be used to specify a commit message; this also implies the ‘TRUE’ values in other contexts.

vignettes

For source packages: if FALSE, don't build PDF vignettes (--no-build-vignettes) or manual (--no-manual).

manual

For source packages: if FALSE, don't build PDF vignettes (–no-build-vignettes) or manual (–no-manual).

args

An optional character vector of additional command line arguments to be passed to R CMD build if binary = FALSE, or R CMD install if binary = TRUE.

quiet

if TRUE suppresses output from this function.

...

furhter arguments passed through to devtools::check()


petermeissner/dratful documentation built on May 25, 2019, 1:52 a.m.