Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# pkgbuild (development version)

* The documentation for the `clean_doc` argument of `build()` now fully
describes the behavior for `TRUE`, `FALSE`, and `NULL`, including the
non-interactive case (@jimhester, #187).

* `needs_compile()` now ignores `.gcov` code coverage files.

# pkgbuild 1.4.8
Expand Down
14 changes: 8 additions & 6 deletions R/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@
#' register routines with
#' `tools::package_native_routine_registration_skeleton()` before building
#' the package. It is ignored if package does not need compilation.
#' @param clean_doc If `TRUE`, clean the files in `inst/doc` before building
#' the package. If `NULL` and the `Config/build/clean-inst-doc` entry is
#' present in `DESCRIPTION`, then that is used. Otherwise, if `NULL`,
#' and interactive, ask to remove the files prior to cleaning. In most
#' cases cleaning the files is the correct behavior to avoid stale
#' vignette outputs in the built package.
#' @param clean_doc If `TRUE`, clean the existing documents by deleting the
#' entire `inst/doc` directory before building the package. If `FALSE`,
#' leave `inst/doc` untouched. If `NULL`
#' (the default), first the `Config/build/clean-inst-doc` entry in
#' `DESCRIPTION` is used if present, otherwise if the session is
#' interactive the user is prompted for what to do, if non-interactive
#' the directory is deleted. In most cases cleaning the files is the
#' correct behavior to avoid stale vignette outputs in the built package.
#' @export
#' @return a string giving the location (including file name) of the built
#' package
Expand Down
14 changes: 8 additions & 6 deletions man/build.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading