Skip to content

Commit

Permalink
[2021.12]
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce committed Aug 7, 2023
1 parent 1c3102c commit 9263fb7
Show file tree
Hide file tree
Showing 11 changed files with 267 additions and 186 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ logo
^cran-comments\.md$
^CRAN-RELEASE$
^LICENSE$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
29 changes: 29 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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]
pull_request:
branches: [main, master]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

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

- uses: r-lib/actions/check-r-package@v2
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@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::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

12 changes: 6 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Package: ChineseNames
Title: Chinese Name Database 1930-2008
Version: 1.1.1
Date: 2021-11-29
Version: 2021.12
Date: 2023-08-07
Authors@R:
c(person(given = "Han-Wu-Shuang",
family = "Bao",
role = c("aut", "cre"),
email = "[email protected]"))
Author: Han-Wu-Shuang Bao [aut, cre]
email = "[email protected]",
comment = c(ORCID = "0000-0003-3043-710X")))
Maintainer: Han-Wu-Shuang Bao <[email protected]>
Description:
A database of Chinese surnames and Chinese given names (1930-2008).
Expand All @@ -24,7 +24,7 @@ Encoding: UTF-8
LazyData: true
URL: https://github.com/psychbruce/ChineseNames
BugReports: https://github.com/psychbruce/ChineseNames/issues
Depends: R (>= 3.6.0)
Depends: R (>= 4.0.0)
Imports: bruceR, data.table
Suggests: babynames, car, dplyr
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
Loading

0 comments on commit 9263fb7

Please sign in to comment.