diff --git a/.Rbuildignore b/.Rbuildignore index f463a14..fc689ce 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,2 +1,3 @@ \.travis\.yml README.md +^\.github$ diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..1b5e463 --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,32 @@ +# 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@v4 + + - 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 + with: + upload-snapshots: true + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/README.md b/README.md index c8fc983..8ef08dc 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ hexbin ====== -[![Build Status](https://travis-ci.org/edzer/hexbin.png?branch=master)](https://travis-ci.org/edzer/hexbin) [![CRAN](http://www.r-pkg.org/badges/version/hexbin)](http://cran.rstudio.com/package=hexbin) [![Downloads](http://cranlogs.r-pkg.org/badges/hexbin?color=brightgreen)](http://www.r-pkg.org/pkg/hexbin) + +[![CRAN](http://www.r-pkg.org/badges/version/hexbin)](http://cran.rstudio.com/package=hexbin) [![Downloads](http://cranlogs.r-pkg.org/badges/hexbin?color=brightgreen)](http://www.r-pkg.org/pkg/hexbin) +[![R-CMD-check](https://github.com/edzer/hexbin/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/edzer/hexbin/actions/workflows/R-CMD-check.yaml) + An R Package with binning and plotting functions for hexagonal bins.