Description Usage Arguments Value
View source: R/make_references_text.R
Generate an a textual list of references based on the given formatting instructions. This function is used by make.r.doc.references and make.md.references.
1 2 3 4 5 6 7 8 | make.references.text(refs = NULL, bibliography, logger = NULL,
subst.doi = "doi:\\\\href\\{\\2\\}\\{\\1\\}",
subst.url = "\\\\url\\{\\1\\}",
first.line.start = "#' @references ", first.line.end = "",
first.line.as.separate.line = FALSE, make.text.before = NULL,
make.text.after = NULL, normal.line.start = "#' ",
normal.line.end = "", between.two.lines = "#'",
after.first.line = between.two.lines, sort = TRUE)
|
refs |
an arbitrary collection of vectors with reference IDs, if
|
bibliography |
a bibliography data set |
logger |
an optional logger function |
subst.doi |
a substitute regular expression for dois: "\1" is the doi, "\2" is the full link |
subst.url |
a substitute regular expression for urls, "\1" is the url |
first.line.start |
the starting string of the first line |
first.line.end |
the ending string of the first line |
first.line.as.separate.line |
should |
make.text.before |
a function to which the reference id is passed and
which should return a string to be pasted before the actual reference text
(or |
make.text.after |
a function to which the reference id is passed and
which should return a string to be pasted after the actual reference text
(or |
normal.line.start |
a string to paste at the beginning of every normal line |
normal.line.end |
a string to paste at the end of every normal line |
between.two.lines |
a string to be pasted as separate line between two normal lines |
after.first.line |
the string to be inserted as line after the first line |
sort |
should the bibliographic references be sorted? |
the multi-line reference text
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.