summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2023-08-21 11:52:59 -0400
committerKen Kellner <ken@kenkellner.com>2023-08-21 11:52:59 -0400
commit307add525155353ebfe7993e6915b01f8f0fb252 (patch)
treee5098865b721fc3ae0eeb5b4d5e9f619647b9057
parentec1ff8ad9966273b8fde9cb0b19d4d24226a183d (diff)
Add CI and update README
-rw-r--r--.Rbuildignore1
-rw-r--r--.github/.gitignore1
-rw-r--r--.github/workflows/R-CMD-check.yaml53
-rw-r--r--NEWS5
-rw-r--r--README.md5
5 files changed, 64 insertions, 1 deletions
diff --git a/.Rbuildignore b/.Rbuildignore
index 3398c83..c04b6a7 100644
--- a/.Rbuildignore
+++ b/.Rbuildignore
@@ -5,3 +5,4 @@
README.md
oldNEWS
Rplots.pdf
+^\.github$
diff --git a/.github/.gitignore b/.github/.gitignore
new file mode 100644
index 0000000..2d19fc7
--- /dev/null
+++ b/.github/.gitignore
@@ -0,0 +1 @@
+*.html
diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml
new file mode 100644
index 0000000..39efba7
--- /dev/null
+++ b/.github/workflows/R-CMD-check.yaml
@@ -0,0 +1,53 @@
+# 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
+#
+# NOTE: This workflow is overkill for most R packages and
+# check-standard.yaml is likely a better choice.
+# usethis::use_github_action("check-standard") will install it.
+on:
+ push:
+ branches: [main, master]
+ pull_request:
+ branches: [main, master]
+
+name: R-CMD-check
+
+jobs:
+ R-CMD-check:
+ runs-on: ${{ matrix.config.os }}
+
+ name: ${{ matrix.config.os }} (${{ matrix.config.r }})
+
+ strategy:
+ fail-fast: false
+ matrix:
+ config:
+ - {os: windows-latest, r: 'release'}
+ - {os: macOS-latest, r: 'release'}
+ - {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
+ - {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
+ - {os: ubuntu-20.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
+
+ env:
+ GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
+ R_KEEP_PKG_SOURCE: yes
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - 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
diff --git a/NEWS b/NEWS
index 4d4820c..ea714af 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+CHANGES in 0.2.9 (2023-08-21)
+
+ * Ken Kellner takes over as Maintainer
+ * `RandomFields` removed from suggests
+ * Old versions of `simExpCorrRF`, `simDynoccSpatial`, and `simPPe` can be found in `inst/RandomFieldsSupport`; see the corresponding help files for how to access these functions from within R.
CHANGES in 0.2.8 (2022-12-01)
diff --git a/README.md b/README.md
index b63a622..999511b 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,13 @@
AHMbook
=======
+[![R build
+status](https://github.com/kenkellner/AHMbook/workflows/R-CMD-check/badge.svg)](https://github.com/kenkellner/AHMbook/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/AHMbook)](https://cran.r-project.org/web/packages/AHMbook/index.html)
[![Downloads](https://cranlogs.r-pkg.org/badges/last-month/AHMbook)](https://www.r-pkg.org/services)
-
The first volume of the book *Applied Hierarchical Modeling in Ecology: Analysis of distribution, abundance and species richness in R and BUGS* by Marc Kéry and Andy Royle appeared early in 2016, the second volume in October 2020. See the [book web page](http://www.mbr-pwrc.usgs.gov/pubanalysis/keryroylebook/).
A number of R functions and data sets are needed to complement the code in the book, and these are included in this R package.
+
+Ken Kellner has taken over maintenance of the `AHMbook` package as of August 2023. All issues and pull requests should be submitted to this repository. The original repository is [here](https://github.com/mikemeredith/AHMbook).