R/citation.R

Defines functions use_citation

Documented in use_citation

#' Create a CITATION template
#'
#' Use this if you want to encourage users of your package to cite an
#' article or book.
#'
#' @export
use_citation <- function() {
  use_directory("inst")
  use_template(
    "citation-template.R",
    path("inst", "CITATION"),
    data = package_data(),
    open = TRUE
  )
}

Try the usethis package in your browser

Any scripts or data that you put into this service are public.

usethis documentation built on Oct. 17, 2021, 1:06 a.m.