Learn R Programming

spanishoddata (version 0.2.0)

spod_cite: Cite the package and the data

Description

Cite the package and the data

Usage

spod_cite(what = "all", format = "all")

Value

Nothing. Prints citation in plain text, markdown, BibTeX, or all formats at once to console.

Arguments

what

Character vector specifying what to cite. Can include "package", "data", "methodology_v1", "methodology_v2", or "all". Default is "all".

format

Character vector specifying output format(s). Can include "text", "markdown", "bibtex", or "all". Default is "all".

Examples

Run this code
# Cite everything in all formats
if (FALSE) {
 spod_cite()
}

# Cite just the package in BibTeX format
if (FALSE) {
 spod_cite(what = "package", format = "bibtex")
}

# Cite both methodologies in plain text
if (FALSE) {
 spod_cite(what = c("methodology_v1", "methodology_v2"), format = "text")
}

Run the code above in your browser using DataLab