Learn R Programming

pakret (version 0.3.0)

pkrt: Cite R or an R package

Description

Creates a preformatted citation of R or an R package. This function should normally only be used in an R Markdown or Quarto document, in which case pkrt() automatically references the cited package in the first (by default) .bib file specified in the YAML header if no references of the package already exist.

Usage

pkrt(pkg)

Value

A character string.

Arguments

pkg

Name of the package to cite. You can use "R" as an alias for the base package to cite R.

Examples

Run this code
pkrt("pakret")

pkrt("R")

Run the code above in your browser using DataLab