Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
^docs$
^_pkgdown\.yml$
^README\.md$
^LICENSE.md
^\.appveyor\.yml$
^vignettes/releases$
^LICENSE\.md$
^\.github$
^CITATION\.cff
^vignettes/releases$
^ui$
^CITATION\.cff$
^cran-comments\.md$
^\.lycheeignore$
^man/figures/favicon\.png$
45 changes: 0 additions & 45 deletions .appveyor.yml

This file was deleted.

39 changes: 8 additions & 31 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,60 +6,37 @@ on:

name: R-CMD-check

permissions: read-all

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- name: Install Homebrew
if: runner.os == 'macOS'
run: |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

- name: Install XQUARTZ dependencies on MacOS
if: runner.os == 'macOS'
run: |
brew install --cask xquartz

- uses: actions/checkout@v3

- uses: actions/checkout@v7
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
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
build_args: 'c("--no-manual", "--compact-vignettes=gs+qpdf")'
66 changes: 66 additions & 0 deletions .github/workflows/quarto-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Publish site

on:
push:
branches: [master]
paths:
- "ui/www/**"
- "man/**"
- "vignettes/**"
- "NEWS.md"
- "DESCRIPTION"
- ".github/workflows/quarto-publish.yml"
pull_request:
paths:
- "ui/www/**"
- "man/**"
- "vignettes/**"
- "NEWS.md"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: quarto-dev/quarto-actions/setup@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::yaml, any::knitr, any::rmarkdown, local::.
needs: website
- name: Check _quarto.yml
run: Rscript ui/www/tools/check-quarto-yml.R
- name: Render
run: quarto render ui/www
- name: Link check (internal)
uses: lycheeverse/lychee-action@v2
with:
args: --offline --no-progress --root-dir ${{ github.workspace }}/ui/www/_site 'ui/www/_site/**/*.html'
fail: true
- uses: actions/upload-pages-artifact@v5
with:
path: ui/www/_site

deploy:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5
19 changes: 11 additions & 8 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
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"
cff-version: 1.2.0
message: "If you use the randomNames package, please cite it using these metadata."
type: software
title: "randomNames: Generate Random Given and Surnames"
version: 1.6-1.0
date-released: 2024-12-3
version: 1.7-0.0
date-released: 2026-10-31
license: GPL-3.0-only
url: "https://centerforassessment.github.io/randomNames/"
repository-code: "https://github.com/CenterForAssessment/randomNames"
authors:
- family-names: "Betebenner"
given-names: "Damian W."
orcid: "https://orcid.org/0000-0003-0476-5599"
28 changes: 16 additions & 12 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
Package: randomNames
Version: 1.6-1.0
Date: 2024-12-3
Version: 1.7-0.0
Date: 2026-10-31
Title: Generate Random Given and Surnames
Depends: R (>= 4.0)
Suggests: knitr, rmarkdown
Imports: crayon, data.table (>= 1.14.0), pkgsearch, toOrdinal (>= 1.1)
Authors@R: c(person(given=c("Damian", "W."), family="Betebenner", email="dbetebenner@nciea.org", role=c("aut", "cre"), comment=c(ORCID = "0000-0003-0476-5599")),
person(given="Lambert", family="Joshua", role="ctb"))
Maintainer: Damian W. Betebenner <dbetebenner@nciea.org>
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.
Depends: R (>= 4.1)
Imports: cli, data.table (>= 1.14.0), stats, toOrdinal (>= 1.4-0.0), utils
Suggests: knitr, rmarkdown, testthat (>= 3.0.0), withr
Authors@R: c(
person("Damian W.", "Betebenner", email = "dbetebenner@nciea.org", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-0476-5599")),
person("Lambert", "Joshua", role = "ctb"),
person("Center for Assessment", role = "cph"))
Description: Generates 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, so a roster of random names looks like a roster of real ones. Useful for anonymising results that would otherwise identify people.
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
Encoding: UTF-8
Config/testthat/edition: 3
Roxygen: list(markdown = TRUE)
LazyData: true
LazyDataCompression: xz
ByteCompile: TRUE
License: GPL-3
Config/roxygen2/version: 8.1.0
7 changes: 3 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import(data.table)
# Generated by roxygen2: do not edit by hand

export(randomNames)
importFrom(crayon,bold,cyan,green,magenta,red,yellow)
importFrom(toOrdinal,toOrdinalDate)
import(data.table)
importFrom(stats,runif)
importFrom(utils,packageVersion)
Loading
Loading