Builds the R
package on pkg_root
by:
styling the R
scripts and R
Markdown files,
building package data by running R
scripts stored in data_raw
,
rendering the R
scripts and R
Markdown files using rmarkdown::render()
, and
building pkgdown
site.
pkg_build( pkg_root = getwd(), clean = TRUE, minimal = FALSE, style = TRUE, data = FALSE, render = TRUE, readme = TRUE, vignettes = TRUE, tests = TRUE, tests2vignettes = TRUE, pkgdown = TRUE, par = FALSE, ncores = NULL, git = FALSE, github = FALSE, commit_msg = "BUILD" )
pkg_root | Character string. Package root directory. |
---|---|
clean | Logical.
Clean output that were automatically generated
by previous builds
before initiating the current build.
See |
minimal | Logical.
If |
style | Logical.
Style |
data | Logical.
Generate data from |
render | Logical.
Render |
readme | Logical.
Render |
vignettes | Logical.
Render |
tests | Logical.
Render |
tests2vignettes | Logical.
Copy and spin |
pkgdown | Logical.
Build |
par | Logical.
If |
ncores | Integer.
Number of cores to use if |
git | Logical. Set up a git repository. |
github | Logical. Set up and push to a github repository. |
commit_msg | Character string. Git commit message. |
Ivan Jacob Agaloos Pesigan
if (FALSE) { pkg_build( pkg_root = "~/boilerplatePackage", minimal = TRUE ) }