Create bibliography md file from a vector of packages

create_biblio_file(
  packages,
  out.dir,
  output = c("packages", "references"),
  to = c("html", "markdown"),
  custom.md,
  edit = TRUE
)

Arguments

packages

vector of packages names

out.dir

Directory where to save output md file

output

Vector with "packages" (list of packages as bullet points), "references" (list of citation references) or both "packages" and "references"

to

Format to convert to. "html", "markdown" or "raw" text

custom.md

Vector of markdown text to add to the document before rendering

edit

Logical. Whether to open output md file for manual edition

Examples

packages <- c("rmarkdown", "attachment")
create_biblio_file(packages, out.dir = tempdir())
#> File /tmp/RtmpVoTxR4/bibliography.html created
#>  Edit '/tmp/RtmpVoTxR4/bibliography.html'
#> You can now edit /tmp/RtmpVoTxR4/bibliography.html