---
title: "build_citation"
---

[< Back to Reference](../reference.qmd) | [View source](https://usrbinr.codeberg.page/qrtdown//src/branch/main/R/build-citation.R#L18)

# `build_citation()`

Build Citation Page

## Usage

```r
build_citation(pkg = ".", quiet = FALSE)
```

## Arguments

| Argument | Description |
|----------|-------------|
| `pkg` | Path to package root |
| `quiet` | Suppress messages |

## Value

Invisibly returns the path to the created file, or NULL if no citation file exists

## Description

Generates citation.qmd from CITATION file or package metadata.
The generated file goes to _qrtdown/citation.qmd.
Build the citation page

Generates citation.qmd only if the user has created a CITATION file
(via `usethis::use_citation()`) or a CITATION.cff file. If neither
exists, no citation page is generated.

