Convert BibTeX string to data frame using temporary file
Source:R/mod_references_fct_bibtex.R
bib_string2df_alt.RdThis function converts a BibTeX formatted string into a data frame by writing
the string to a temporary file and then using bib2df::bib2df to parse it.
The temporary file is automatically cleaned up after use.
Arguments
- string
A BibTeX formatted string containing one or more entries
- ...
Additional arguments passed to
bib2df::bib2df()
Details
This approach uses temporary files to work around the limitation that
bib2df::bib2df only accepts file paths, not strings directly.
The temporary file is created in the system temp directory and removed
automatically, even if an error occurs.