-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CITATION file and use it to generate package startup message
- Loading branch information
1 parent
cf3a3d3
commit 926c2c1
Showing
2 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
) |