diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..562fe0f --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,51 @@ +# 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: + +name: R-CMD-check.yaml + +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', 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: + - uses: actions/checkout@v4 + + - 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 + + - 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 + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/.github/workflows/check-release.yaml b/.github/workflows/check-release.yaml deleted file mode 100644 index 145f0dd..0000000 --- a/.github/workflows/check-release.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. -# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions -on: - push: - branches: - - main - - master - pull_request: - branches: - - main - - master - -name: R-CMD-check - -jobs: - R-CMD-check: - runs-on: macOS-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/setup-r@v1 - - name: Install dependencies - run: | - install.packages(c("remotes", "rcmdcheck")) - remotes::install_deps(dependencies = TRUE) - shell: Rscript {0} - - name: Check - run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") - shell: Rscript {0} diff --git a/DESCRIPTION b/DESCRIPTION index 53bf6c6..7fe543b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,16 +1,17 @@ Package: dcData Type: Package Title: Data Sets Accompanying DataComputing eBook -Version: 0.1.0 +Version: 0.1.1 Authors@R: c( person("Daniel", "Kaplan", role = "aut"), person("Matthew", "Beckman", email = "mdb268@psu.edu", role = c("aut", "cre"))) Description: Data sets accompanying *Data Computing (2nd ed.)* by Kaplan & Beckman - (https://dtkaplan.github.io/DataComputingEbook/) used to teach wrangling + () used to teach wrangling and visualization techniques that turn data into information. License: CC0 Encoding: UTF-8 LazyData: true +LazyDataCompression: xz Depends: R (>= 2.10) -RoxygenNote: 7.1.1 +RoxygenNote: 7.3.3 diff --git a/README.Rmd b/README.Rmd index 752db9c..d3a015b 100644 --- a/README.Rmd +++ b/README.Rmd @@ -17,9 +17,10 @@ knitr::opts_chunk$set( [![R build status](https://github.com/mdbeckman/dcData/workflows/R-CMD-check/badge.svg)](https://github.com/mdbeckman/dcData/actions) +[![R-CMD-check](https://github.com/mdbeckman/dcData/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mdbeckman/dcData/actions/workflows/R-CMD-check.yaml) -The `dcData` package includes data sets that accompany *Data Computing (2nd edition)* by Kaplan & Beckman [(eBook)](https://dtkaplan.github.io/DataComputingEbook/) used to teach wrangling and visualization techniques that turn data into information. +The `dcData` package includes data sets that accompany *Data Computing (2nd edition)* by Kaplan & Beckman [(eBook)](https://dtkaplan.github.io/DataComputingEbook/) used to teach data wrangling and visualization techniques that turn data into information. ## Installation