build: Tools for Building and Installing R Packages

pkg_buildR Documentation

Tools for Building and Installing R Packages

Description

Building, checking and installing R packages.

Usage

    pkg_build(pkg, parent.dir = ".", check = FALSE,
              build.vignettes = TRUE,
              run.tests = TRUE, install = FALSE,
              keep.source = FALSE,
              clean = FALSE,
              bump.version = FALSE,
              bump.date = FALSE,
              resave.data = TRUE,
              as.cran = FALSE,
              show.test.results = TRUE,
              verbose = TRUE,
              use.crayon = FALSE)
    latest_version(pkg, path = ".", type = "source", strict = TRUE)

Arguments

pkg

package name

parent.dir

a string: the path in which the source directories reside

type

string: source or zip

as.cran

logical

strict

logical. See package_version.

Details

pkg_build builds a package from a source directory, and optionally checks and installs it.

Value

a character vector, insisibly

Author(s)

Enrico Schumann

Examples


basedir <- "~/Packages"
packages <- c("NMOF", "PMwR")

for (p in packages)
    pkg_build(pkg = p,
              parent.dir = basedir,
              install = TRUE,
              check = TRUE,
              clean = FALSE,
              keep.source = TRUE)


enricoschumann/esutils documentation built on Feb. 2, 2024, 10:03 a.m.