reflist | R Documentation |
A fast way to produce a reference list in an r-markdown document from a
lib_df
object.
This function may or may not produce intermediate files (bib and Rmd) and the
result can be assigned to an object for further edition
(see yamlme::update()
).
A html file will be written by write_rmd()
and render_rmd()
in the
working directory and displayed by browseURL()
.
reflist(x, ...)
## S3 method for class 'character'
reflist(
x,
output_file,
delete_source = TRUE,
title = "Automatic Reference List",
output = "html_document",
nocite = "'@*'",
urlcolor = "blue",
encoding = "UTF-8",
...
)
## S3 method for class 'lib_df'
reflist(x, filename, delete_source = TRUE, ...)
x |
A |
... |
Further arguments passed to the yaml header in the intermediate Rmarkdown document. |
output_file |
A character value with the name for the written Rmarkdown file. |
delete_source |
A logical value indicating whether written bib file should be deleted after rendering html or not. |
title , output , nocite , urlcolor |
Arguments used for the yaml-header in
r-markdown and passed to |
encoding |
A character value indicating the encoding string. It is
passed to |
filename |
A character value with the name for the written Rmd file, without file extension. |
An invisible object of class rmd_doc
. A Rmd file will be written by
write_rmd()
as well.
## Not run:
reflist(synopsis)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.