From 516ff74e122f2744e25769a914e226721dcad082 Mon Sep 17 00:00:00 2001 From: addelany Date: Mon, 13 May 2024 08:47:02 -0500 Subject: [PATCH] fix null check --- R/build_publication_items.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/build_publication_items.R b/R/build_publication_items.R index b4de39d..56ab254 100644 --- a/R/build_publication_items.R +++ b/R/build_publication_items.R @@ -12,7 +12,7 @@ build_publication_items <- function(var_citation, var_doi){ - if (is.null(var_citation) ! is.null(var_doi)){ + if (is.null(var_citation) | is.null(var_doi)){ return(NULL) }else{ doi_list <- c(catalog_config$citation_doi)