Skip to content

Commit

Permalink
one last thing to mak sure we can bind all possible results
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Sep 18, 2024
1 parent b8ba920 commit 72c0c5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/citation_search.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ citation_search <- function(identifiers,

# Run each search, producing a list of dataframes
result_df_list <- lapply(search_funs, function(search_fun) {
search_fun(identifiers)
df <- search_fun(identifiers)
df[] <- lapply(df, as.character) # Coerce all columns to character
return(df)
})

# Combine the resulting data frames and return the result df
Expand Down

0 comments on commit 72c0c5f

Please sign in to comment.