Skip to content

Commit 3147025

Browse files
committed
fix null issue
1 parent b56c837 commit 3147025

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/citation_search_springer.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ citation_search_springer <- function(identifiers) {
5454
))
5555
}, error = function(e) {
5656
message("Springer Nature API call failed for identifier '", identifiers[i], "': ", e$message)
57+
NULL
5758
})
5859
})
5960

6061
# assign dataset identifier to each result
6162
springer_results <- list()
6263
for (i in 1:length(results)) {
63-
if (as.numeric(results[[i]]$result$total) == 0 |
64-
is.null(results[[i]])) {
64+
if (as.numeric(results[[i]]$result$total) == 0 | is.null(results[[i]])) {
6565
springer_results[[i]] <- data.frame(
6666
article_id = NA,
6767
article_title = NA,

0 commit comments

Comments
 (0)