Export references for preprints returning by a search to a .bib file

mx_export(data, file = "medrxiv_export.bib")

Arguments

data

Dataframe returned by mx_search() or mx_api_*() functions

file

File location to save to. Must have the .bib file extension

Value

Exports a formatted .BIB file, for import into a reference manager

See also

Other helper: mx_crosscheck(), mx_download()

Examples

# \donttest{ mx_results <- mx_search(mx_snapshot(), query = "brain")
#> Using medRxiv snapshot - 2020-11-22 00:24
#> Found 536 record(s) matching your search.
mx_export(mx_results, tempfile(fileext = ".bib"))
#> References exported to /tmp/RtmpqlEgHM/file45165905823.bib
# }