pkg_build: Create a binary package from an installed package

View source: R/builder.R

pkg_buildR Documentation

Create a binary package from an installed package

Description

The built package will be in the current working directory.

Usage

pkg_build(
  pkg,
  library = .libPaths()[1],
  flavor = Sys.getenv("PKG_BUILD_FLAVOR"),
  build_number = 1L
)

Arguments

pkg

Package name.

library

Library path.

flavor

Platform flavor. Defaults to the PKG_BUILD_FLAVOR environment variable. If not NULL or an empty string, then it is appended to the platform string with a dash.

build_number

An integer number that is added to the file name, after the version number, to be able to have multiple builds for the same package version.

Details

This function is currently experimental.

Value

Path to the built package.


r-lib/depends documentation built on April 14, 2025, 1:59 a.m.