Skip to content

Commit 65a3c4f

Browse files
committed
add warning to scopus tryCatch
1 parent 6703950 commit 65a3c4f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

R/citation_search_scopus.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ citation_search_scopus <- function(identifiers) {
4848
))
4949
}, error = function(e) {
5050
message("Scopus API call failed for identifier '", identifiers_enc[i], "': ", e$message)
51+
}, warning = function(w) {
52+
message("Scopus Nature API call failed for identifier '", identifiers[i], "': ", w$message)
5153
})
52-
})
5354

5455
# extract relevant information from raw results
5556
for (i in 1:length(results)) {

0 commit comments

Comments
 (0)