Skip to content

Commit 4b49f79

Browse files
committed
Avoid GH action dependency errors by adding more setup
1 parent a05c3fe commit 4b49f79

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish-demo.yml

+19
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,25 @@ jobs:
1919
- name: "Check out repository"
2020
uses: actions/checkout@v3
2121

22+
# To render using knitr, we need a few more setup steps...
23+
# If we didn't want the examples to use `engine: knitr`, we could
24+
# skip a few of the setup steps.
25+
- name: "Setup pandoc"
26+
uses: r-lib/actions/setup-pandoc@v2
27+
28+
- name: "Setup R"
29+
uses: r-lib/actions/setup-r@v2
30+
31+
- name: "Setup R dependencies for Quarto's knitr engine"
32+
uses: r-lib/actions/setup-r-dependencies@v2
33+
with:
34+
packages:
35+
any::knitr
36+
any::rmarkdown
37+
any::downlit
38+
any::xml2
39+
40+
# Back to our regularly scheduled Quarto output
2241
- name: "Set up Quarto"
2342
uses: quarto-dev/quarto-actions/setup@v2
2443

0 commit comments

Comments
 (0)