Skip to content

Commit

Permalink
Depend on pkgbuild unconditionally (#250)
Browse files Browse the repository at this point in the history
Closes #249
  • Loading branch information
lionel- authored Jul 5, 2023
1 parent 371b849 commit 58567be
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Imports:
fs,
glue,
methods,
pkgbuild,
rlang (>= 1.1.1),
rprojroot,
utils,
Expand All @@ -35,7 +36,6 @@ Suggests:
mathjaxr,
mockr,
pak,
pkgbuild,
Rcpp,
remotes,
rstudioapi,
Expand Down
7 changes: 5 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# pkgload (development version)

* `load_all()` no longer standardises version number in namespace metadata
* pkgload now depends unconditionally on pkgbuild (#249).

* `load_all()` no longer standardises version number in namespace metadata
(#231).

* New `pkg_version_raw()` to get raw package version as a string.


# pkgload 1.3.2

* Fixes for CRAN checks.
Expand Down
2 changes: 0 additions & 2 deletions R/load.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,9 @@ load_all <- function(path = ".",
}

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

0 comments on commit 58567be

Please sign in to comment.