pkrt: Cite R or an R package

View source: R/pkrt.R

pkrtR Documentation

Cite R or an R package

Description

Creates a preformatted citation for R or an R package. This function is normally used within an R Markdown or Quarto document, where pkrt() automatically references the cited package to the first (by default) .bib file specified in the YAML header if no reference for the package already exists.

Usage

pkrt(pkg)

Arguments

pkg

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

Value

A character string with S3 class AsIs.

Examples

pkrt("pakret")

pkrt("R")

pakret documentation built on April 15, 2026, 5:06 p.m.