Skip to content

Commit

Permalink
Use an empty string if NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcintosh committed Dec 3, 2024
1 parent f9644f7 commit 6d99888
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/pipeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ execute_model_logic <- function(config, output_dir) {
metadata <- list(
job_id = config[["job_id"]],
task_id = config[["task_id"]],
data_path = config[["data"]][["path"]],
data_path = ifelse(
# is_empty checks for NULL and empty data structures
rlang::is_empty(config[["data"]][["path"]]),
config[["data"]][["path"]], ""
),
model = config[["model"]],
disease = config[["disease"]],
geo_value = config[["geo_value"]],
Expand Down

0 comments on commit 6d99888

Please sign in to comment.