Skip to content

Commit bc6c894

Browse files
committed
Force installing ggplot2 version 3.5.2 to avoid CI errors
1 parent 77b601c commit bc6c894

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/lint.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,30 @@ jobs:
3333
- name: Ensure remotes is installed
3434
run: Rscript -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")'
3535

36-
- name: Install compatible dependencies
36+
- name: Install pinned package versions
3737
run: |
38-
Rscript -e 'remotes::install_version("ggplot2", version = "3.5.2")'
39-
Rscript -e 'remotes::install_version("scales", version = "1.3.0")'
40-
Rscript -e 'remotes::install_version("pkgdown", version = "2.0.7")'
41-
Rscript -e 'remotes::install_version("lintr", version = "3.0.0")'
42-
Rscript -e 'remotes::install_version("sessioninfo", version = "1.2.2")'
38+
Rscript -e 'remotes::install_version("ggplot2", version="3.5.2", repos="https://cran.r-project.org"); cat("ggplot2 version:", packageVersion("ggplot2"), "\n")'
39+
Rscript -e 'remotes::install_version("scales", version="1.3.0", repos="https://cran.r-project.org"); cat("scales version:", packageVersion("scales"), "\n")'
40+
Rscript -e 'remotes::install_version("pkgdown", version="2.0.7", repos="https://cran.r-project.org"); cat("pkgdown version:", packageVersion("pkgdown"), "\n")'
41+
Rscript -e 'remotes::install_version("lintr", version="3.0.0", repos="https://cran.r-project.org"); cat("lintr version:", packageVersion("lintr"), "\n")'
42+
Rscript -e 'remotes::install_version("sessioninfo", version="1.2.2", repos="https://cran.r-project.org"); cat("sessioninfo version:", packageVersion("sessioninfo"), "\n")'
43+
Rscript -e 'remotes::install_version("tidyterra", version="0.4.0", repos="https://cran.r-project.org"); cat("tidyterra version:", packageVersion("tidyterra"), "\n")'
44+
Rscript -e 'remotes::install_version("cowplot", version="1.1.3", repos="https://cran.r-project.org"); cat("cowplot version:", packageVersion("cowplot"), "\n")'
45+
Rscript -e 'remotes::install_version("ggpubr", version="0.6.0", repos="https://cran.r-project.org"); cat("ggpubr version:", packageVersion("ggpubr"), "\n")'
46+
Rscript -e 'remotes::install_version("ggExtra", version="0.10.1", repos="https://cran.r-project.org"); cat("ggExtra version:", packageVersion("ggExtra"), "\n")'
4347
48+
- name: Install GitHub dependencies
49+
run: |
50+
Rscript -e 'remotes::install_github("elgabbas/ecokit@0.1.0"); cat("ecokit version:", packageVersion("ecokit"), "\n")'
51+
Rscript -e 'remotes::install_github("hmsc-r/HMSC"); cat("HMSC version:", packageVersion("Hmsc"), "\n")'
52+
4453
- name: Install remaining dependencies
4554
run: |
46-
Rscript -e 'remotes::install_deps(dependencies = TRUE)'
55+
Rscript -e 'remotes::install_deps(dependencies=c("Depends", "Imports"), repos="https://cran.r-project.org")'
56+
57+
- name: Verify pak is not installed
58+
run: |
59+
Rscript -e 'if ("pak" %in% installed.packages()[, "Package"]) stop("Error: pak is installed!") else cat("No pak installed\n")'
4760
4861
# - name: Install dependencies
4962
# uses: r-lib/actions/setup-r-dependencies@v2

0 commit comments

Comments
 (0)