Skip to content

Instantly share code, notes, and snippets.

@agricolamz
Created April 24, 2024 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agricolamz/57a5b7d58b3cb363f3e3a74cb3f2f409 to your computer and use it in GitHub Desktop.
Save agricolamz/57a5b7d58b3cb363f3e3a74cb3f2f409 to your computer and use it in GitHub Desktop.
library(tidyverse)
library(scholar)
my_id <- "ka_iMFQAAAAJ"
my_pubs <- get_publications(my_id)
map_chr(my_pubs$pubid, function(i){
res <- get_publication_abstract(id = my_id, pub_id = i)
ifelse(length(res) > 0, res, "")
}) ->
my_pubs$abs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment