# Convert a list to a `cff` object.
cffobj <- as_cff(list(
"cff-version" = "1.2.0",
title = "Manipulating files"
))
class(cffobj)
# Display the YAML representation.
cffobj
# `bibentry` method.
a_cit <- citation("cffr")[[1]]
a_cit
as_cff(a_cit)
# BibTeX method.
a_bib <- toBibtex(a_cit)
a_bib
as_cff(a_cit)
Run the code above in your browser using DataLab