write_bib | R Documentation |
Please use
cff_write_bib()
or
cff_write_citation()
instead.
write_bib(x, file = tempfile(), append = FALSE, verbose = TRUE, ascii = FALSE)
write_citation(
x,
file = "./inst/CITATION",
append = FALSE,
verbose = TRUE,
...
)
x |
A |
file |
Name of the file to be created. If |
append |
Whether to append the entries to an existing file or not. |
verbose |
Display informative messages |
ascii |
Whether to write the entries using ASCII characters only or not. |
Write a file.
cff_write_bib()
for writing *.bib
files.
cff_write_citation()
for writing R CITATION
files.
Other deprecated functions:
cff_extract_to_bibtex()
,
cff_from_bibtex()
,
cff_parse_citation()
,
cff_parse_person()
bib <- bibentry("Misc",
title = "My title",
author = "Fran Pérez"
)
my_temp_bib <- tempfile(fileext = ".bib")
cff_write_bib(bib, file = my_temp_bib)
cat(readLines(my_temp_bib), sep = "\n")
cff_write_bib(bib, file = my_temp_bib, ascii = TRUE, append = TRUE)
cat(readLines(my_temp_bib), sep = "\n")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.