R: Create a BibTeX entry from a CITATION file or a 'cff' object

cff_to_bibtex {cffr} | R Documentation

## Create a BibTeX entry from a CITATION file or a `cff` object

### Description

Creates a `bibentry` object (`bibentry()`) from a `cff` object

### Usage

    cff_to_bibtex(x)

### Arguments

`x` | The source that would be used for generating the `cff` object. It could be: An existing `cff` object, A CITATION.cff file.

### Value

A `bibentry` object that can be parsed to BibTeX format with `toBibtex()`

### References

- Patashnik, Oren. "BIBTEXTING" February 1988. https://osl.ugr.es/CTAN/biblio/bibtex/base/btxdoc.pdf.

- Haines, R., & The Ruby Citation File Format Developers. (2021). Ruby CFF Library (Version 0.9.0) (Computer software). doi: 10.5281/zenodo.1184077.

### See Also

`cff_parse_citation()`, `bibentry()`, `toBibtex()`

Other bibtex: `cff_extract_to_bibtex()`, `encoded_utf_to_latex()`, `write_bib()`

### Examples

    # From a cff object
    package <- cff_create("rmarkdown")

    obj <- cff_to_bibtex(package)

    obj

    toBibtex(obj)

[Package cffr version 0.2.1 Index]