---
title: "use_qrtdown_citation"
---

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

# `use_qrtdown_citation()`

Add citation to package

## Usage

```r
use_qrtdown_citation(pkg = ".", populate = TRUE)
```

## Arguments

| Argument | Description |
|----------|-------------|
| `pkg` | Path to the package root directory |
| `populate` | If TRUE (default), pre-populate with authors and metadata from DESCRIPTION. If FALSE, create a blank template. |

## Value

Invisibly returns the path to CITATION file

## Description

Creates an inst/CITATION file for the package. When `populate = TRUE`
(the default), the citation is pre-populated with author information
from DESCRIPTION. Set `populate = FALSE` to create a blank template
like `usethis::use_citation()`.

