Skip to content

Commit

Permalink
Force compilation when compile = TRUE
Browse files Browse the repository at this point in the history
Closes #93
  • Loading branch information
lionel- committed May 30, 2022
1 parent 8557ca0 commit 4f4680d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# pkgload (development version)

* `load_all(compile = TRUE)` now forces a full recompilation (#93).

* The advice about running `rm()` to remove conflicts with objects in
the global environment is now clickable in RStudio (#199).

Expand Down
1 change: 1 addition & 0 deletions R/load.r
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ load_all <- function(path = ".",

if (isTRUE(compile)) {
rlang::check_installed("pkgbuild", reason = "to compile packages with a `src/` directory.")
pkgbuild::clean_dll()
pkgbuild::compile_dll(path, force = TRUE, quiet = quiet)
} else if (identical(compile, NA)) {
rlang::check_installed("pkgbuild", reason = "to compile packages with a `src/` directory.")
Expand Down

0 comments on commit 4f4680d

Please sign in to comment.