-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (93 loc) · 3.05 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
on:
workflow_dispatch:
push:
branches: main
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.3' # Update to most recent version of R
- name: Install cURL Headers
run: sudo apt-get install libcurl4-openssl-dev
- name: Install system dependencies for R package textshaping
run: sudo apt-get install -y libharfbuzz-dev libfribidi-dev libfreetype6-dev
- name: Install system dependencies for R package gemtc
run: sudo apt-get install -y libglpk-dev
- name: Install system dependencies for JAGS
run: sudo apt-get install -y r-cran-rjags
- name: Install system dependencies for R package pdftools
run: sudo apt-get install -y libpoppler-cpp-dev
- name: Install TinyTeX
run: |
Rscript -e 'install.packages("tinytex")'
Rscript -e 'tinytex::install_tinytex()'
Rscript -e 'tinytex:::install_prebuilt()'
- name: Install R packages from CRAN
uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
packages: |
any::rmarkdown
any::bipd
any::caret
any::devtools
any::dplyr
any::fastDummies
any::gbm
any::gemtc
any::ggmice
any::ggplot2
any::ggpubr
any::gridExtra
any::jarbes
any::jomo
any::kableExtra
any::knitr
any::MatchThem
any::Matrix
any::metafor
any::mice
any::missForest
any::mitml
any::mixgb
any::naniar
any::netmeta
any::precmed
any::randomForestSRC
any::ranger
any::remotes
any::robvis
any::roxygen2
any::rpart
any::rpart.plot
any::sandwich
any::sparseMVN
any::survey
any::tidyverse
any::table1
any::tableone
- name: Install remaining R packages
run: |
Rscript -e 'install.packages("MatchIt", dependencies=TRUE)'
Rscript -e 'install.packages("WeightIt", dependencies=TRUE)'
Rscript -e 'install.packages("optmatch", dependencies=TRUE)'
Rscript -e 'install.packages("flextable", dependencies=TRUE)'
Rscript -e 'install.packages("officer", dependencies=TRUE)'
Rscript -e 'install.packages("testthat", dependencies=TRUE)'
Rscript -e 'install.packages("interactionR", dependencies=TRUE)'
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}