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

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.0 Index]