R/citation.R

Defines functions write_bib

Documented in write_bib

#' Generate BibTeX bibliography databases for R packages
#'
#' A wrapper function of \code{xfun::pkg_bib()}.
#' @param ...,prefix Arguments passed to \code{xfun::\link[xfun]{pkg_bib}()}.
#' @export
write_bib = function(..., prefix = getOption('knitr.bib.prefix', 'R-')) {
  xfun::pkg_bib(..., prefix = prefix)
}

Try the knitr package in your browser

Any scripts or data that you put into this service are public.

knitr documentation built on April 4, 2025, 5:15 a.m.
OSZAR »