make.md.references: Generate an Markdown Style References

Description Usage Arguments Value

View source: R/make_md_references.R

Description

Generate an Markdown formatted references.

Usage

1
2
3
4
5
6
7
8
make.md.references(refs, bibliography, logger = NULL,
  subst.doi = "doi:\\[\\1\\]\\(\\2\\)",
  subst.url = "\\<\\1\\>", first.line.start = "# References",
  first.line.end = "", first.line.as.separate.line = TRUE,
  make.text.before = NULL, make.text.after = NULL,
  normal.line.start = "* ", normal.line.end = "",
  between.two.lines = NULL, after.first.line = if
  (is.null(normal.line.start)) {     NULL } else {     "" }, sort = TRUE)

Arguments

refs

an arbitrary collection of vectors with reference IDs

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 (optional, default value is supplied)

subst.url

a substitute regular expression for urls, "\1" is the url (optional, default value is supplied)

first.line.start

the starting string of the first line (optional, default value is supplied)

first.line.end

the ending string of the first line (optional, default value is supplied)

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) (optional, default value is supplied)

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 ""); NULL is supplied by default, meaning that 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 ""); NULL is supplied by default, meaning that

normal.line.start

a string to paste at the beginning of every normal line (optional, default value is supplied)

normal.line.end

a string to paste at the end of every normal line (optional, default value is supplied)

between.two.lines

a string to be pasted as separate line between two normal lines (optional, default value is supplied)

after.first.line

the string to be inserted as line after the first line (optional, default value is supplied)

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.