Skip to content

Commit 0b1cc37

Browse files
committed
Band aid for fixing regression in rmarkdown for oldrel-4
1 parent 9bebd96 commit 0b1cc37

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/pkgdown-build/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: 'Action to build a pkgdown website'
33
runs:
44
using: "composite"
55
steps:
6+
- name: "Band aid: install rmarkdown from GitHub in older R"
7+
run: |
8+
if (getRversion() < "3.5" && packageVersion("rmarkdown") < "2.13") {
9+
pak::pak("rstudio/rmarkdown")
10+
}
11+
shell: Rscript {0}
12+
613
- name: Build site
714
run: |
815
pkgdown::build_site()

.github/workflows/pkgdown-deploy/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ name: 'Action to deploy a pkgdown website'
33
runs:
44
using: "composite"
55
steps:
6+
- name: "Band aid: install rmarkdown from GitHub in older R"
7+
run: |
8+
if (getRversion() < "3.5" && packageVersion("rmarkdown") < "2.13") {
9+
pak::pak("rstudio/rmarkdown")
10+
}
11+
shell: Rscript {0}
12+
613
- name: Deploy site
714
run: |
815
pkgdown::deploy_to_branch(new_process = FALSE)

0 commit comments

Comments
 (0)