#' Title
#'
#' @param name
#'
#' @return
#' @export
#'
#' @examples
get_scholar <- function(name){
pacman::p_load(httr, rvest, scholar)
name <- gsub(" ", "+", name, fixed = TRUE)
text <- paste0("https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=", name) %>%
read_html() %>%
html_nodes(., ".gs_rt2")
dcat <- strsplit(as.character(text), "(user=)|&")[[1]][2] %>%
get_profile()
return(dcat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.