From 70eb60d1f6130d8502e68adb3956f1000d4a2a36 Mon Sep 17 00:00:00 2001 From: wlandau Date: Wed, 20 Nov 2024 22:10:42 -0500 Subject: [PATCH] fix new bug --- R/class_reference.R | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/R/class_reference.R b/R/class_reference.R index deeed664..2328b3e5 100644 --- a/R/class_reference.R +++ b/R/class_reference.R @@ -38,9 +38,21 @@ reference_produce_target <- function(reference, pipeline, name) { child <- target_produce_child(parent, name) file <- .subset2(child, "file") if (!is.null(file)) { - file$path <- reference_path(reference) - file$stage <- reference_stage(reference) - file$hash <- reference_hash(reference) + path <- reference_path(reference) + stage <- reference_stage(reference) + hash <- reference_hash(reference) + if (is.null(path)) { + path <- NA_character_ + } + if (is.null(stage)) { + stage <- NA_character_ + } + if (is.null(hash)) { + hash <- NA_character_ + } + file$path <- path + file$stage <- stage + file$hash <- hash } child }