build_pkg.Rd
build various versions of a package
build_pkg(
.pkgdir = ".",
types = c("source", "binary"),
repository = NULL,
origin = NULL,
addl_meta = NULL,
supplement_version = FALSE,
overwrite = TRUE,
remove_remotes = FALSE,
...
)
path to package
types of package to build
repository name being built for
package source
additional metadata
add additional version info (unix timestamp) to version. TRUE inspects the pkg folder as a git repo, also may provide a character or numeric value to append
overwrite fields already present when adding fields
delete the remotes field
parameters to pass to pkgbuild
supplementing version can be done whenever a build occurs that does not correspond to a formal release/tag. This will automatically add information about the git hash (if available), as well as incrememnt the version number with a unix timestamp that corresponds to the last git hash (if present) or the current system time, if git is not present and no version timestamp is provided.
removing the remotes field can be helpful when dealing with consolidated package installs where all packages are available in a single repository. For example, pulling everything into a posit package manager mirror.