Skip to content

Commit

Permalink
Add doc section on debug compiler flags (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcol authored Nov 4, 2024
1 parent 96d1a74 commit d10172c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
12 changes: 11 additions & 1 deletion R/load.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@
#' behavior when loading an installed package with [library()], and can
#' be useful for checking for missing exports.
#'
#' # Controlling the debug compiler flags
#'
#' `load_all()` delegates to [pkgbuild::compile_dll()] to perform the actual
#' compilation, during which by default some debug compiler flags are
#' appended. If you would like to produce an optimized build instead,
#' you can opt out by setting the `pkg.build_extra_flags`
#' option or the `PKG_BUILD_EXTRA_FLAGS` environment variable to `FALSE`.
#' For further details see the Details section in [pkgbuild::compile_dll()].
#'
#'
#' @param path Path to a package, or within a package.
#' @param reset `r lifecycle::badge("deprecated")` This is no longer supported
#' because preserving the namespace requires unlocking its environment, which
Expand Down Expand Up @@ -122,7 +132,7 @@ load_all <- function(path = ".",
warn_conflicts = TRUE) {
if (!isTRUE(reset)) {
lifecycle::deprecate_warn(
when = "1.3.5",
when = "1.3.5",
what = "load_all(reset)",
details = "`reset = FALSE` is no longer supported."
)
Expand Down
9 changes: 9 additions & 0 deletions man/load_all.Rd

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

0 comments on commit d10172c

Please sign in to comment.