mx_download: Download PDF's of preprints returned by a search

View source: R/mx_download.R

mx_downloadR Documentation

Download PDF's of preprints returned by a search

Description

Download PDF's of all the papers in your search results

Usage

mx_download(
  mx_results,
  directory,
  create = TRUE,
  name = c("ID", "DOI"),
  print_update = 10
)

Arguments

mx_results

Vector containing the links to the medRxiv PDFs

directory

The location you want to download the PDF's to

create

TRUE or FALSE. If TRUE, creates the directory if it doesn't exist

name

How to name the downloaded PDF. By default, both the ID number of the record and the DOI are used.

print_update

How frequently to print an update

See Also

Other helper: mx_caps(), mx_crosscheck(), mx_export()

Examples


mx_results <- mx_search(mx_snapshot(), query = "10.1101/2020.02.25.20021568")
mx_download(mx_results, directory=tempdir())


mcguinlu/medrxivr documentation built on Sept. 11, 2022, 9:25 p.m.