create_citations: create_citations

Description Usage Arguments Value Examples

View source: R/create_citations.R

Description

This function creates citations for multiple R packages at once. By default, this function will create a citation for R, along with the other functions you include. When creating the citations, you can choose to either receive text citations or have them formatted in BibTeX. The function will return citations in the console pane in your RStudio window.

Usage

1
create_citations(packages = NULL, format = "bibtex", include_r = TRUE)

Arguments

packages

A list of packages that you have used or plan to use in your document. If packages argument is empty, the function will create citations for packages loaded into current R session.

format

The type of citations you want to return. Returns bibtex by default, use 'format = text' to return text citations.

include_r

If set to TRUE, will create a citation for R.

Value

A list of citations for the packages included in a document.

Examples

1
2
3
4
5
6
7
create_citations(packages = list("tidyverse", "DoSStoolkit"),
 format = "bibtex")

create_citations(list("Lahman", "ggplot2", "forcats"),
"text")

create_citations(list("tidyverse"))

matthewwankiewicz/citationcheckR documentation built on Dec. 21, 2021, 3:47 p.m.