make.references.text: Generate an References List

Description Usage Arguments Value

View source: R/make_references_text.R

Description

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.

Usage

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)

Arguments

refs

an arbitrary collection of vectors with reference IDs, if NULL, then all bibliographic entries are used

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 first.line.start be a separate line (TRUE) or should it be the beginning pasted in front of a normal line of references (FALSE)

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 ""); if NULL is supplied, no strings are added

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 ""); if NULL is supplied, no strings are added

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?

Value

the multi-line reference text


thomasWeise/literatureAndResultsGen documentation built on Nov. 5, 2019, 10:07 a.m.