Skip to contents

Downloads and caches a bibliography file from a remote URL specified in the database.

Usage

boilerplate_update_bibliography(
  db,
  cache_dir = "~/.boilerplate/cache",
  force = FALSE,
  quiet = FALSE
)

Arguments

db

Database object containing bibliography information

cache_dir

Directory to cache the bibliography file. Default is "~/.boilerplate/cache"

force

Logical. Force re-download even if cached file exists

quiet

Logical. Suppress messages

Value

Path to the local bibliography file, or NULL if no bibliography specified

Examples

if (FALSE) { # \dontrun{
db <- boilerplate_import()
bib_file <- boilerplate_update_bibliography(db)
} # }