
Update Bibliography from Remote Source
Source:R/bibliography-support.R
boilerplate_update_bibliography.Rd
Downloads and caches a bibliography file from a remote URL specified in the database.
Examples
# \donttest{
# Create temporary directory for example
temp_dir <- tempfile()
dir.create(temp_dir)
# Initialise and import
boilerplate_init(data_path = temp_dir, create_dirs = TRUE, confirm = FALSE, quiet = TRUE)
db <- boilerplate_import(data_path = temp_dir, quiet = TRUE)
# Update bibliography
bib_file <- boilerplate_update_bibliography(db)
#> Migrated bibliography cache from old location to /Users/joseph/Library/Caches/org.R-project.R/R/boilerplate
#> ℹ No bibliography URL specified in database
# Clean up
unlink(temp_dir, recursive = TRUE)
# }