Skip to content
Merged
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
5 changes: 5 additions & 0 deletions R/compile-dll.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@
# Does the package need a clean compile?
# (i.e. is there a header or Makevars newer than the dll)
needs_clean <- function(path = ".") {
never_clean <- get_desc_config_flag(path, "never-clean")
if (isTRUE(never_clean)) {
return(FALSE)

Check warning on line 214 in R/compile-dll.R

View check run for this annotation

Codecov / codecov/patch

R/compile-dll.R#L214

Added line #L214 was not covered by tests
}

headers <- mtime(headers(path))
# no headers, so never needs clean compile
if (is.null(headers)) {
Expand Down