bibify_pkgs: Generate a bibliography of packages

View source: R/bibify_pkgs.R

bibify_pkgsR Documentation

Generate a bibliography of packages

Description

This function creates an output bibliography from an input character vector of package names. The primary use case for this function is when working with other authors and you need to provide a reference list of packages used.

Usage

bibify_pkgs(pkgs, csl, append_bib = NULL, keep_intermediate = FALSE, ...)

Arguments

pkgs

A character vector of packages

csl

A csl file used to format the output bibliography. Good place to look for these is https://github.com/citation-style-language/styles

append_bib

Existing .bib file to append package citations to. Defaults to NULL

keep_intermediate

A logical indicating if you would like to keep the intermediate .bib and .md files. Most useful if you would like to get an output .bib or need to troubleshoot. Default is FALSE.

...

Used to pass arguments to render. Most useful for changing output format (e.g. output_format = "word_document") or output file name.

Examples

download.file("https://raw.githubusercontent.com/citation-style-language/styles/master/plos.csl",
                destfile = "plos.csl")
bibify_pkgs(c("dplyr","readr"),"plos.csl", output_format = "word_document",
            output_file = "my_package_bib.docx")

jhollist/miscPackage documentation built on March 3, 2024, 9:23 p.m.