Skip to content

Commit

Permalink
updated pkg info
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce committed Aug 21, 2023
1 parent 167ba1c commit 2f17bf1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 59 deletions.
41 changes: 7 additions & 34 deletions R/ChineseNames.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,12 @@
#' This database was provided by Beijing Meiming Science and Technology Company (in collaboration) and
#' originally obtained from the National Citizen Identity Information Center (NCIIC) of China in 2008.
#'
#' @section Citation:
#' Bao, H.-W.-S. (2023). ChineseNames: Chinese Name Database 1930-2008.
#' R package version 2023.8.
#' \url{https://CRAN.R-project.org/package=ChineseNames}
#'
#' Bao, H.-W.-S., Cai, H., Jing, Y., & Wang, J. (2021).
#' Novel evidence for the increasing prevalence of unique names in China:
#' A reply to Ogihara. \emph{Frontiers in Psychology, 12}, 731244.
#' \doi{10.3389/fpsyg.2021.731244}
#'
#' @docType package
#' @name ChineseNames
NULL
"_PACKAGE"


.onAttach = function(libname, pkgname) {
inst.ver = as.character(utils::packageVersion("ChineseNames"))
pkg.date = substr(utils::packageDate("ChineseNames"), 1, 4)
packageStartupMessage(glue::glue_col("
{magenta ChineseNames (v{inst.ver})}
Expand All @@ -51,17 +40,11 @@ NULL
{underline https://psychbruce.github.io/ChineseNames}
{magenta To use this package in publications, please cite:}
"),
"\n",
"Bao, H.-W.-S. (2023). ",
"ChineseNames: Chinese Name Database 1930-2008. ",
"R package version 2023.8. ",
"https://CRAN.R-project.org/package=ChineseNames\n",
"\n",
"Bao, H.-W.-S., Cai, H., Jing, Y., & Wang, J. (2021). ",
"Novel evidence for the increasing prevalence of unique names in China: ",
"A reply to Ogihara. Frontiers in Psychology, 12, 731244.\n")
Bao, H.-W.-S. ({pkg.date}). "),
glue::glue_col("{italic ChineseNames: Chinese Name Database 1930-2008}"),
glue::glue_col(" (Version {inst.ver}) [Computer software]. "),
glue::glue_col("{underline https://CRAN.R-project.org/package=ChineseNames}"),
"\n")
}


Expand Down Expand Up @@ -210,16 +193,6 @@ NULL
#' @note
#' For details and examples, see \url{https://psychbruce.github.io/ChineseNames/}
#'
#' @section Citation:
#' Bao, H.-W.-S. (2023). ChineseNames: Chinese Name Database 1930-2008.
#' R package version 2023.8.
#' \url{https://CRAN.R-project.org/package=ChineseNames}
#'
#' Bao, H.-W.-S., Cai, H., Jing, Y., & Wang, J. (2021).
#' Novel evidence for the increasing prevalence of unique names in China:
#' A reply to Ogihara. \emph{Frontiers in Psychology, 12}, 731244.
#' \doi{10.3389/fpsyg.2021.731244}
#'
#' @examples
#' ## Prepare ##
#' sn = familyname$surname[1:12]
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A database of Chinese surnames and Chinese given names (1930-2008). This databas

<!-- badges: start -->

[![CRAN-Version](https://www.r-pkg.org/badges/version/ChineseNames?color=red)](https://CRAN.R-project.org/package=ChineseNames) [![GitHub-Version](https://img.shields.io/github/r-package/v/psychbruce/ChineseNames?label=GitHub&color=orange)](https://github.com/psychbruce/ChineseNames) [![R-CMD-check](https://github.com/psychbruce/ChineseNames/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/psychbruce/ChineseNames/actions/workflows/R-CMD-check.yaml) [![CRAN-Downloads](https://cranlogs.r-pkg.org/badges/grand-total/ChineseNames)](https://CRAN.R-project.org/package=ChineseNames) [![Logo-Designer](https://img.shields.io/badge/Logo%20Designer-Meijia%20Li-blueviolet?logo=github-sponsors)](https://github.com/Stellapros) [![GitHub-Stars](https://img.shields.io/github/stars/psychbruce/ChineseNames?style=social)](https://github.com/psychbruce/ChineseNames/stargazers)
[![CRAN-Version](https://www.r-pkg.org/badges/version/ChineseNames?color=red)](https://CRAN.R-project.org/package=ChineseNames) [![GitHub-Version](https://img.shields.io/github/r-package/v/psychbruce/ChineseNames?label=GitHub&color=orange)](https://github.com/psychbruce/ChineseNames) [![R-CMD-check](https://github.com/psychbruce/ChineseNames/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/psychbruce/ChineseNames/actions/workflows/R-CMD-check.yaml) [![CRAN-Downloads](https://cranlogs.r-pkg.org/badges/grand-total/ChineseNames)](https://CRAN.R-project.org/package=ChineseNames) [![GitHub-Stars](https://img.shields.io/github/stars/psychbruce/ChineseNames?style=social)](https://github.com/psychbruce/ChineseNames/stargazers)

<!-- badges: end -->

Expand All @@ -22,8 +22,9 @@ Han-Wu-Shuang (Bruce) Bao 包寒吴霜

## Citation

- Bao, H.-W.-S. (2023). *ChineseNames: Chinese Name Database 1930-2008*. R package version 2023.8. <https://CRAN.R-project.org/package=ChineseNames>
- Bao, H.-W.-S., Cai, H., Jing, Y., & Wang, J. (2021). Novel evidence for the increasing prevalence of unique names in China: A reply to Ogihara. *Frontiers in Psychology, 12*, 731244. <https://doi.org/10.3389/fpsyg.2021.731244>
- Bao, H.-W.-S. (2023). *ChineseNames: Chinese Name Database 1930-2008* (Version 2023.8) [Computer software]. <https://CRAN.R-project.org/package=ChineseNames>
- Bao, H.-W.-S., Cai, H., Jing, Y., & Wang, J. (2021). Novel evidence for the increasing prevalence of unique names in China: A reply to Ogihara. *Frontiers in Psychology, 12*, Article 731244. <https://doi.org/10.3389/fpsyg.2021.731244>
- Bao, H.-W.-S., Lu, H., & Luo, Y. L. L. (in press). Do unique names fit people for creative work? Implications for job recruitment, name change, and product evaluation. *European Journal of Social Psychology*.

## Installation

Expand Down
21 changes: 11 additions & 10 deletions man/ChineseNames.Rd → man/ChineseNames-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions man/compute_name_index.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f17bf1

Please sign in to comment.