Skip to contents

Copies the bibliography file from cache to a specified directory, typically for use with Quarto documents.

Usage

boilerplate_copy_bibliography(
  db,
  target_dir = ".",
  overwrite = TRUE,
  update_first = FALSE,
  quiet = FALSE
)

Arguments

db

Database object containing bibliography information

target_dir

Directory to copy the bibliography file to. Default is current directory.

overwrite

Logical. Whether to overwrite existing file

update_first

Logical. Whether to update from remote before copying

quiet

Logical. Suppress messages

Value

Path to the copied bibliography file, or NULL if operation failed

Examples

if (FALSE) { # \dontrun{
db <- boilerplate_import()
boilerplate_copy_bibliography(db, ".")
} # }