Skip to content

Commit 513859b

Browse files
committed
Force installing ggplot2 < v4 to avoid CI errors
1 parent 7b1c09b commit 513859b

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/lint.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,23 @@ jobs:
3737
shell: Rscript {0}
3838

3939
- name: Install dependencies
40-
uses: r-lib/actions/setup-r-dependencies@v2
41-
with:
42-
extra-packages: |
43-
any::lintr
44-
github::elgabbas/ecokit
45-
github::hmsc-r/HMSC
46-
local::.
47-
needs: lint
40+
run: |
41+
install.packages(c("remotes", "lintr"))
42+
remotes::install_version("ggplot2", version = "3.5.2")
43+
remotes::install_github("elgabbas/ecokit")
44+
remotes::install_github("hmsc-r/HMSC")
45+
remotes::install_local(".", upgrade = "never")
46+
shell: Rscript {0}
47+
48+
# - name: Install dependencies
49+
# uses: r-lib/actions/setup-r-dependencies@v2
50+
# with:
51+
# extra-packages: |
52+
# any::lintr
53+
# github::elgabbas/ecokit
54+
# github::hmsc-r/HMSC
55+
# local::.
56+
# needs: lint
4857

4958
- name: Lint
5059
run: lintr::lint_package()

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Imports:
2525
fs (>= 1.6.4),
2626
future (>= 1.34.0),
2727
future.apply (>= 1.11.3),
28-
ggplot2 (>= 3.5.0, < 4.0.0),
28+
ggplot2 (>= 3.5.2, < 4.0.0),
2929
Hmsc,
3030
Rcpp (>= 1.0.13),
3131
rlang (>= 1.1.4),

0 commit comments

Comments
 (0)