getDESCRIPTION: Utility functions for getting and adding imports,...

View source: R/build.R

getDESCRIPTIONR Documentation

Utility functions for getting and adding imports, DESCRIPTION, README and kgname to the package.

Description

getDESCRIPTION gets the DESCRIPTION text to write to the DESCRIPTION file, adding authors, R-dependency, title, description and other info stored in the input spec. Note that the package imports are not added here, but later in the addImportsToDESCRIPTION function.

getREADME gets the README file in the Rstox style, which has package and R version in the first two lines, followed by description, install instructions, miscellaneous info, and release notes retrieved from the NEWS file.

addImportsToDESCRIPTION adds the imports to the DESCRIPTION file.

getPkgname gets the pkgname text to write to the pkgname.R file.

Usage

getDESCRIPTION(spec)

addImportsToDESCRIPTION(spec, cpp = FALSE)

getPkgname(spec)

Arguments

spec

A list of package specifications returned from packageSpecs.


imr-stox/RstoxBuild documentation built on June 12, 2025, 9:59 a.m.