Skip to content

Commit

Permalink
Merge pull request #87 from dbetebenner/master
Browse files Browse the repository at this point in the history
Update of github workflow
  • Loading branch information
dbetebenner authored Oct 14, 2024
2 parents 97a075b + 551a0f5 commit a0f7a1b
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
^\.travis\.yml$
^docs$
^_pkgdown\.yml$
^README\.md$
^LICENSE.md
^\.appveyor\.yml$
^vignettes/releases$
^\.github$
^CITATION\.cff
14 changes: 10 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
Expand All @@ -20,7 +18,7 @@ jobs:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

Expand Down Expand Up @@ -49,11 +47,19 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

# Cache R packages to speed up builds
- name: Cache R packages
uses: actions/cache@v3
with:
path: ~/.cache/R
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
upload-snapshots: true
10 changes: 10 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
cff-version: 1.0.0
message: "If you use the randomNames Package, please cite it using these metadata."
authors:
- family-names: "Damian"
given-names: "Betebenner"
orcid: "https://orcid.org/0000-0003-0476-5599"
title: "randomNames: Generate Random Given and Surnames"
version: 1.6-0.0
date-released: 2024-5-2
url: "https://centerforassessment.github.io/randomNames/"
11 changes: 6 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Package: randomNames
Version: 1.5-0.0
Date: 2021-4-21
Version: 1.6-0.0
Date: 2024-5-2
Title: Generate Random Given and Surnames
Depends: R (>= 4.0)
Suggests: knitr, rmarkdown
Imports: crayon, data.table (>= 1.14.0), toOrdinal (>= 1.1)
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="[email protected]", role=c("aut", "cre")))
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="[email protected]", role=c("aut", "cre"), comment=c(ORCID = "0000-0003-0476-5599")),
person(given="Lambert", family="Joshua", role="ctb"))
Maintainer: Damian W. Betebenner <[email protected]>
Description: Function for generating random gender and ethnicity correct first and/or last names. Names are chosen proportionally based upon their probability of appearing in a large scale data base of real names.
URL: https://CenterForAssessment.github.io/randomNames, https://github.com/CenterForAssessment/randomNames, https://cran.r-project.org/package=randomNames
BugReports: https://github.com/CenterForAssessment/randomNames/issues
URL: https://centerforassessment.github.io/randomNames/, https://github.com/CenterForAssessment/randomNames/, https://cran.r-project.org/package=randomNames
BugReports: https://github.com/CenterForAssessment/randomNames/issues/
VignetteBuilder: knitr
LazyLoad: Yes
LazyData: Yes
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# randomNames 1.6-0.0

* Added in Joshua Lambert's improvements.

# randomNames 1.5-0.0

* Fixed names with embedded spaces as the first character.
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ function(libname, pkgname) {
`.onAttach` <-
function(libname, pkgname) {
if (interactive()) {
packageStartupMessage(magenta$bold('randomNames',paste(paste0(unlist(strsplit(as.character(packageVersion("randomNames")), "[.]")), c(".", "-", ".", "")), collapse=""),' (4-21-2021). For help: >help("randomNames") or visit https://centerforassessment.github.io/randomNames'))
packageStartupMessage(magenta$bold('randomNames',paste(paste0(unlist(strsplit(as.character(packageVersion("randomNames")), "[.]")), c(".", "-", ".", "")), collapse=""),' (5-2-2024). For help: >help("randomNames") or visit https://centerforassessment.github.io/randomNames'))
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ randomNames
[![R-CMD-check](https://github.com/CenterForAssessment/randomNames/workflows/R-CMD-check/badge.svg)](https://github.com/CenterForAssessment/randomNames/actions)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/centerforassessment/randomNames?branch=master&svg=true)](https://ci.appveyor.com/project/centerforassessment/randomNames)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/randomNames)](http://cran.r-project.org/package=randomNames)
[![Development Version](https://img.shields.io/badge/devel-1.5--0.0-brightgreen.svg)](https://github.com/CenterForAssessment/randomNames)
[![Development Version](https://img.shields.io/badge/devel-1.5--0.1-brightgreen.svg)](https://github.com/CenterForAssessment/randomNames)
[![Rstudio mirror downloads](http://cranlogs.r-pkg.org/badges/grand-total/randomNames)](https://github.com/metacran/cranlogs.app)
[![License](http://img.shields.io/badge/license-GPL%203-brightgreen.svg?style=flat)](https://github.com/CenterForAssessment/randomNames/blob/master/LICENSE.md)
[![https://gitter.im/CenterForAssessment/randomNames](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/CenterForAssessment/randomNames?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
14 changes: 7 additions & 7 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
citHeader("To cite package 'randomNames' in publications, please use:")

citEntry(entry = "Manual",
bibentry(
bibtype = "Manual",
header = "To cite the randomNames package in publications use:",
title = "{randomNames}: Function for Generating Random Names and a Dataset",
author = "Damian W. Betebenner",
year = "2021",
note = "R package version 1.5-0.0",
year = "2024",
note = "R package version 1.6-0.0",
url = "https://cran.r-project.org/package=randomNames",

textVersion = paste("Damian W. Betebenner (2021).",
textVersion = paste("Damian W. Betebenner (2024).",
"randomNames: Function for Generating Random Names and a Dataset.",
"(R package version 1.5-0.0",
"(R package version 1.6-0.0",
"URL https://cran.r-project.org/package=randomNames")
)
4 changes: 4 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# randomNames 1.6-0.0

* Added in Joshua Lambert's improvements.

# randomNames 1.5-0.0

* Fixed names with embedded spaces as the first character.
Expand Down
4 changes: 2 additions & 2 deletions man/randomNames-package.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ a large scale database.
\tabular{ll}{
Package: \tab randomNames\cr
Type: \tab Package\cr
Version: \tab 1.5-0.0\cr
Date: \tab 2021-4-21\cr
Version: \tab 1.6-0.0\cr
Date: \tab 2024-5-2\cr
License: \tab GPL-3\cr
LazyLoad: \tab yes\cr
}
Expand Down

0 comments on commit a0f7a1b

Please sign in to comment.