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")
#> Found 3760 record(s) matching your search.
mx_export(mx_results, tempfile(fileext = ".bib"))
#> References exported to /tmp/RtmpG8fTHY/filea56428dde40.bib
# }