powered by
Please use as_bibentry() instead.
as_bibentry()
cff_extract_to_bibtex(x, what = c("preferred", "references", "all"))cff_to_bibtex(x, what = c("preferred", "references", "all"))
cff_to_bibtex(x, what = c("preferred", "references", "all"))
See as_bibentry().
The source that would be used for generating the bibentry object via cffr. It could be:
bibentry
A missing value. That would retrieve the DESCRIPTION file on your in-development package.
DESCRIPTION
An existing cff object created with cff(), cff_create() or as_cff().
cff
cff()
cff_create()
as_cff()
Path to a CITATION.cff file ("CITATION.cff"),
"CITATION.cff"
The name of an installed package ("jsonlite"), or
"jsonlite"
Path to a DESCRIPTION file ("DESCRIPTION").
"DESCRIPTION"
Fields to extract from a full cff object. The value could be:
preferred: This would create a single entry with the main citation info of the package (key preferred-citation).
preferred
preferred-citation
references: Extract all the entries of references key.
references
all: A combination of the previous two options. This would extract both the preferred-citation and the references key.
all
See vignette("crosswalk", package = "cffr").
vignette("crosswalk", package = "cffr")
Other deprecated functions: cff_from_bibtex(), cff_parse_citation(), cff_parse_person(), write_bib()
cff_from_bibtex()
cff_parse_citation()
cff_parse_person()
write_bib()
# \donttest{ # From a cff object cff_object <- cff() cff_object # bibentry object bib <- as_bibentry(cff_object) # }
Run the code above in your browser using DataLab