Returns an APA-formatting citation of an R package

apa_citation(pkg)

Arguments

pkg

Name of package (quoted string)

Value

A character vector of the APA citation. If on Mac or PC, then also it's stored to the system's clipboard.

Examples

## cite this pacakge apa_citation("tfse")
#> #> Kearney, M. W. (2018). tfse: Various useful functions (R package version 0.4.1) #> [Computer software]. The Comprehensive R Archive Network. Available from #> https://tfse.mikewk.com #>