Skip to contents

Download PubMed data with query string

Usage

batch_pubmed_download2(
  pubmed_query_string,
  year_low = 2023,
  year_high = 2030,
  data_folder = "data",
  batch_size = 5000,
  api_key = NULL
)

Arguments

pubmed_query_string

The PubMed query string.

year_low

The year the data should start.

year_high

The year the data should end.

data_folder

Where to save the data.

batch_size

The download batch size.

api_key

The api key for faster processing (optional).

Examples

# \dontshow{
.old_wd <- setwd(tempdir())
# }
if (FALSE) {
pubmed_query_string <- paste(
  "passion [Title/Abstract]",
  "AND Dualistic Model of Passion [Text Word]"
)

batch_pubmed_download2(
  pubmed_query_string,
  year_low = 2023,
  year_high = 2023
)
}
# \dontshow{
setwd(.old_wd)
# }