Skip to content

Commit ddfc3d4

Browse files
authored
Merge pull request #164 from UCD-SERG/copilot/sub-pr-163
[WIP] Fix pkgdown website rendering issues
2 parents 7d022a1 + a6c08a0 commit ddfc3d4

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

.github/workflows/pkgdown.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
# more info: https://github.com/rstudio/education-workflows/tree/main/examples#deploy-pkgdown-to-github-pages-with-pr-previews-and-tagged-versions
77
on:
88
pull_request:
9-
branches:
10-
- main
119
types:
1210
- opened
1311
- reopened
@@ -67,6 +65,11 @@ jobs:
6765
with:
6866
tinytex: true
6967

68+
- name: Install JAGS
69+
run: |
70+
sudo apt-get update
71+
sudo apt-get install -y jags
72+
7073
- uses: r-lib/actions/setup-r@v2
7174
with:
7275
use-public-rspm: true
@@ -79,6 +82,19 @@ jobs:
7982
extra-packages: |
8083
local::.
8184
r-lib/pkgdown
85+
86+
- name: Install rjags
87+
run: |
88+
install.packages("rjags",
89+
repos = "https://cloud.r-project.org",
90+
type = "source",
91+
verbose = TRUE)
92+
withr::local_options(warn = 2)
93+
library(rjags)
94+
library(runjags)
95+
runjags::findJAGS()
96+
runjags::testjags()
97+
shell: Rscript {0}
8298

8399
# If events is a PR, set subdir to 'preview/pr<pr_number>'
84100
- name: "[PR] Set documentation subdirectory"

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,7 @@ jobs:
1616
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1717

1818
steps:
19-
- name: Install JAGS (Windows)
20-
if: runner.os == 'Windows'
21-
run: |
22-
curl.exe -o wjags.exe -L0 -k --url https://downloads.sourceforge.net/project/mcmc-jags/JAGS/4.x/Windows/JAGS-4.3.1.exe
23-
wjags.exe /S
24-
del wjags.exe
25-
shell: cmd
26-
27-
# from https://github.com/ku-awdc/runjags/issues/2:
28-
- name: Install JAGS (macOS)
29-
if: runner.os == 'macOS'
30-
run: |
31-
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
32-
sudo installer -pkg /usr/local/JAGS-4.3.1.pkg -target /usr/local/bin/
33-
34-
- name: Install JAGS (Ubuntu)
35-
if: runner.os == 'Linux'
19+
- name: Install JAGS
3620
run: |
3721
sudo apt-get update
3822
sudo apt-get install -y jags

0 commit comments

Comments
 (0)