Build project to output
projr_build.Rd.build_output` Builds project to output, which means recording the input and output data hashes, building the actual bookdown document and saving and archiving selected output.
.build_major, .build_minor and .build_patch are wrappers around .build_output with the version component
bumped set automatically, e.g. projr_build_major() is equivalent projr_build(bump_component = "major").
Usage
projr_build(
bump_component,
msg = NULL,
args_engine = list(),
profile = NULL,
archive_github = FALSE,
archive_local = FALSE,
always_archive = TRUE,
clear_output = NULL,
output_level = NULL
)
projr_build_major(
msg = NULL,
args_engine = list(),
profile = NULL,
archive_github = FALSE,
archive_local = FALSE,
always_archive = TRUE,
clear_output = NULL,
output_level = NULL
)
projr_build_minor(
msg = NULL,
args_engine = list(),
profile = NULL,
archive_github = FALSE,
archive_local = FALSE,
always_archive = TRUE,
clear_output = NULL,
output_level = NULL
)
projr_build_patch(
msg = NULL,
args_engine = list(),
profile = NULL,
archive_github = FALSE,
archive_local = FALSE,
always_archive = TRUE,
clear_output = NULL,
output_level = NULL
)Arguments
- bump_component
"major", "minor", "patch" or missing. Specifies version component to increment. If missing, then is set equal to the lowest version component in used version format. No default (i.e. is missing by default).
- msg
character. Message to append to Git commit messages. Default is
NULL, in which case the user is prompted for a message or, if the session is not interactive, it is left empty. Default isNULL. Note that the Git messages in this case would not be blank - they would simply consist of details as to the version being bumped to and the stage in the build process at which the commit was made.- args_engine
list. Arguments passed to the rendering engine (
rmarkdown::render,quarto::renderorbookdown::render_book).- profile
character.
projrprofile to use. Will set the environment variable .PROFILE` to this value at the start of the build,- archive_github
TRUE,FALSEorcharacter vector of directory labels. IfTRUE, then all directories (raw-data,output, etc) are uploaded to a GitHub release namedarchiveas versioned files (e.g.output-v0.1.2.zip). IfFALSE, then no directories are uploaded. If a character vector, then only the directories specified are uploaded. Default isFALSE. Ignored if there is a release namedarchivealready specified as a destination in theprojrconfiguration file.- archive_local
TRUE,FALSEor character vector of directory labels. IfTRUE, then all directories (raw-data,output, etc) are archived to a local directory. IfFALSE, then no directories are archived locally. If a character vector, then only the directories specified are archived. Default isFALSE.- always_archive
logical. If
TRUE, then the directories are uploaded regardless of whether the directory to be uploaded has exactly the same contents as the latest version of the directory on the GitHub release. Default isTRUE. Ignored if there is a release namedarchivealready specified as a destination in theprojrconfiguration file.- clear_output
character. When to clear output directories: "pre" (before build, default), "post" (after build), or "never". Can also be set via PROJR_CLEAR_OUTPUT environment variable.
- output_level
character. Level of CLI output: "none" (no additional messages), "std" (standard messages, default for output builds), or "debug" (verbose messages for debugging). Can also be set via PROJR_OUTPUT_LEVEL environment variable.