Creating default print methods for class sr_model #833
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
# GOT THE JAGS INSTALL FROM: | |
# https://github.com/lindeloev/mcp/blob/e5b1370879d5be8b45240d86276d9f99bcff4918/.github/workflows/check-standard.yaml | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
name: R-CMD-check.yaml | |
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: | |
- name: Install JAGS (Windows) | |
if: runner.os == 'Windows' | |
run: | | |
curl.exe -o wjags.exe -L0 -k --url https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Windows/JAGS-4.3.1.exe | |
wjags.exe /S | |
del wjags.exe | |
shell: cmd | |
# from https://github.com/ku-awdc/runjags/issues/2: | |
- name: Install JAGS (macOS) | |
if: runner.os == 'macOS' | |
run: | | |
sudo curl --location https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Mac%20OS%20X/JAGS-4.3.1.pkg -o /usr/local/JAGS-4.3.1.pkg | |
sudo installer -pkg /usr/local/JAGS-4.3.1.pkg -target /usr/local/bin/ | |
- name: Install JAGS (Ubuntu) | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y jags | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@HEAD | |
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@HEAD | |
with: | |
extra-packages: any::rcmdcheck | |
needs: test, check | |
- name: "install rjags" | |
run: | | |
install.packages("rjags", | |
repos = "https://cloud.r-project.org", | |
type = "source", | |
verbose = TRUE) | |
withr::local_options(warn = 2) | |
library(rjags) | |
library(runjags) | |
runjags::findJAGS() | |
runjags::testjags() | |
shell: Rscript {0} | |
- uses: r-lib/actions/check-r-package@HEAD | |
with: | |
upload-snapshots: true | |
# see `rcmdcheck::rcmdcheck()` `error_on` argument | |
error-on: '"note"' | |
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' |