format_bib | R Documentation |
Operates on a named list of bibentry()
entries and formats them nicely for
documentation with roxygen2.
format_bib()
is intended to be called in the @references
section and
prints the complete entry using toRd()
.
cite_bib()
returns the family name of the first author (if available, falling back
to the complete author name if not applicable) and the year in format
"[LastName] (YYYY)"
.
format_bib(..., bibentries = NULL, envir = parent.frame())
cite_bib(..., bibentries = NULL, envir = parent.frame())
... |
( |
bibentries |
(named |
envir |
( |
(character(1)
).
bibentries = list(checkmate = citation("checkmate"), R = citation())
format_bib("checkmate")
format_bib("R")
cite_bib("checkmate")
cite_bib("checkmate", "R")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.