Skip to content

Commit

Permalink
Fix #658
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau-lilly committed Jan 7, 2019
1 parent 8551117 commit 9a8c9f8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/exec-meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ dependency_hash <- function(target, config) {
if (is_imported(target, config)) {
deps <- c(deps, x$file_in, x$knitr_in)
}
if (!length(deps)) {
return("")
}
deps <- unlist(deps)
deps <- as.character(deps)
deps <- unique(deps)
Expand All @@ -110,6 +113,9 @@ input_file_hash <- function(
) {
deps <- config$layout[[target]]$deps_build
files <- sort(unique(as.character(c(deps$file_in, deps$knitr_in))))
if (!length(files)) {
return("")
}
out <- vapply(
X = files,
FUN = file_hash,
Expand All @@ -132,6 +138,9 @@ output_file_hash <- function(
) {
deps <- config$layout[[target]]$deps_build
files <- sort(unique(as.character(deps$file_out)))
if (!length(files)) {
return("")
}
out <- vapply(
X = files,
FUN = file_hash,
Expand Down

0 comments on commit 9a8c9f8

Please sign in to comment.