| GetPubMedRelated | R Documentation | 
Searches PubMed for articles related to a set of PubMed ID's using NCBI's E-Utilities.
GetPubMedRelated(
  id,
  database = "pubmed",
  batch.mode = TRUE,
  max.results = 10,
  return.sim.scores = FALSE,
  return.related.ids = FALSE
)
| id | either a character vector of PubMed ID's or a BibEntry object,
which is expected to have at least some entries with
 | 
| database | string; the Entrez database to search | 
| batch.mode | logical; if  | 
| max.results | numeric vector; the maximum number of results to
return if  | 
| return.sim.scores | logical; Entrez returns a similarity score with
each returned citation giving a measure of how similar the returned entry
is to the ones specified by the query.  If  | 
| return.related.ids | logical; should the original PubMed ID(s) that a returned entry is related to be stored in a field called ‘PMIDrelated’. | 
an object of class BibEntry.
https://www.ncbi.nlm.nih.gov/books/NBK25500/
Other pubmed: 
GetPubMedByID(),
LookupPubMedID(),
ReadCrossRef(),
ReadPubMed()
if (interactive() && !httr::http_error("https://eutils.ncbi.nlm.nih.gov/")){
  file.name <- system.file("Bib", "RJC.bib", package="RefManageR")
  bib <- ReadBib(file.name)
  bib <- LookupPubMedID(bib[[101:102]])
  toBiblatex(GetPubMedRelated(bib, batch.mode = TRUE, max.results = 2,
  return.sim.scores = TRUE, return.related.ids = TRUE))
  GetPubMedRelated(bib, batch.mode = FALSE, max.results = c(2, 2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.