Skip to content

Commit

Permalink
feat: add CITATION file and use it to generate package startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
rossellhayes committed Nov 17, 2023
1 parent cf3a3d3 commit 926c2c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/wru-internal.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.onAttach <-
function(libname, pkgname) {
packageStartupMessage("\nPlease cite as: \n")
packageStartupMessage("Khanna K, Bertelsen B, Olivella S, Rosenman E, Imai K (2022). wru: Who are You?")
packageStartupMessage("Bayesian Prediction of Racial Category Using Surname, First Name, Middle Name, and Geolocation.")
packageStartupMessage("URL: https://CRAN.R-project.org/package=wru \n")
.onAttach <- function(libname, pkgname) {
packageStartupMessage(
"\nPlease cite as:\n\n",
format(citation("wru"), style = "text"),
"\n"
)
}
13 changes: 13 additions & 0 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
bibentry(
bibtype = "Manual",
title = "wru: Who are You? Bayesian Prediction of Racial Category Using Surname, First Name, Middle Name, and Geolocation",
author = c(
person("Kabir", "Khanna", , "[email protected]", role = "aut"),
person("Brandon", "Bertelsen", , "[email protected]", role = c("aut", "cre")),
person("Santiago", "Olivella", , "[email protected]", role = "aut"),
person("Evan", "Rosenman", , "[email protected]", role = "aut"),
person("Kosuke", "Imai", , "[email protected]", role = "aut")
),
year = 2023,
url = "https://CRAN.R-project.org/package=wru"
)

0 comments on commit 926c2c1

Please sign in to comment.