create_citation_file: Create Citation File

Description Usage Arguments Value Examples

View source: R/create_citation_file.R

Description

This function is an extension of the 'create_citation' file. 'create_citation_file' creates a new file which contains your citations. The file name can be changed but by default it will be called 'references.bib'.

Usage

1
2
3
4
5
6
create_citation_file(
  packages = NULL,
  format = "bibtex",
  filename = "references.bib",
  include_r = TRUE
)

Arguments

packages

A list of packages that you have used or plan to use in your document.

format

The type of citations you want to return.

filename

A file containing the citations of the packages used. Called 'references.bib' by default.

include_r

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

Value

A new file containing the citations of packages.

Examples

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

create_citation_file(c("tidyverse", "Lahman"), include_r = TRUE)

create_citation_file(c("DoSStoolkit"), format = "text")

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