R/citation.R

#' 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 July 4, 2019, 5:05 p.m.