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

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_crosscheck(), mx_export()

Examples

# \donttest{ mx_results <- mx_search(mx_snapshot(), query = "10.1101/2020.02.25.20021568")
#> Using medRxiv snapshot - 2020-11-22 00:24
#> Found 1 record(s) matching your search.
mx_download(mx_results, directory=tempdir())
#> Estimated time to completion: 0 hours
#> Downloading PDF 1 of 1 (DOI: 2056_10.1101_2020.02.25.20021568). . .
# }