if (FALSE) {
# Printing converted file onto R session
citation_file <- system.file("CFF-CITATION.cff", package = "citation")
cff2r(citation_file)
# Saving converted file to temporary folder on system
tempFolder <- tempdir()
cff2r(
citation_file, export = TRUE, outname = "converted-desc", overwrite = TRUE,
outpath = tempFolder
)
# Making sure the file is indeed there
cat(readLines(file.path(tempFolder, "converted-desc")), sep="\n")
}
Run the code above in your browser using DataLab