View source: R/gcite_cite_over_time.R
| gcite_cite_over_time | R Documentation | 
Parses a google citations over time from the main Citation page
gcite_cite_over_time(doc, ...)
## S3 method for class 'xml_node'
gcite_cite_over_time(doc, ...)
## S3 method for class 'xml_document'
gcite_cite_over_time(doc, ...)
## S3 method for class 'character'
gcite_cite_over_time(doc, ...)
## Default S3 method:
gcite_cite_over_time(doc, ...)
doc | 
 A xml_document or the url for the main page  | 
... | 
 arguments passed to   | 
A matrix of citations
library(httr)
library(rvest) 
url = "https://scholar.google.com/citations?user=T9eqZgMAAAAJ"
url = gcite_url(url = url, pagesize = 10, cstart = 0) 
if (!is_travis() & !is_cran()) {
#' ind = gcite_cite_over_time(url)
doc = content(httr::GET(url))
ind = gcite_cite_over_time(doc)
ind_nodes = rvest::html_nodes(doc, ".gsc_md_hist_b")
ind = gcite_cite_over_time(ind_nodes)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.