The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Get pubmed data

Introduction

This vignette demonstrates how to retrieve citation data from PubMed using:

These functions are part of the risk.assessr package.

DISCLAIMER: This feature only works if you choose a good R package name.


Setting Your PubMed API Key

To increase request limits and improve stability, you can use an NCBI API key.

# Replace with your actual API key
options(pubmed.api_key = "your_actual_ncbi_api_key")

Load Required Libraries

library(risk.assessr)
library(ggplot2)

package_name <- "limma"

Total Number of Articles Matching a Term

pubmed_count <- get_pubmed_count(package_name)
pubmed_count

Number of Articles by Year

citation_data <- get_pubmed_by_year(package_name, years_back = 20)
citation_data

Plotting the Article Trend Over Time

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.