# Convert a list to "cff" object
cffobj <- as_cff(list(
"cff-version" = "1.2.0",
title = "Manipulating files"
))
class(cffobj)
# Nice display thanks to yaml package
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