Skip to contents

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

Usage

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_caps(), mx_crosscheck(), mx_download()

Examples

# \donttest{
mx_results <- mx_search(mx_snapshot(), query = "brain")
#> Using medRxiv snapshot - 2022-07-06 01:09
#> Found 1627 record(s) matching your search.
mx_export(mx_results, tempfile(fileext = ".bib"))
#> References exported to /tmp/RtmpClFjEe/file4fd67720ea3.bib
# }