File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed
Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 66# more info: https://github.com/rstudio/education-workflows/tree/main/examples#deploy-pkgdown-to-github-pages-with-pr-previews-and-tagged-versions
77on :
88 pull_request :
9- branches :
10- - main
119 types :
1210 - opened
1311 - reopened
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
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"
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments