Skip to content

Commit 871a475

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

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/lint.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,29 @@ jobs:
3535

3636
- name: Install pinned package versions
3737
run: |
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")'
47-
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")'
43+
Rscript -e 'remotes::install_version("tidyterra", version="0.4.0")'
44+
Rscript -e 'remotes::install_version("cowplot", version="1.1.3")'
45+
Rscript -e 'remotes::install_version("ggpubr", version="0.6.0")'
46+
Rscript -e 'remotes::install_version("ggExtra", version="0.10.1")'
47+
4848
- name: Install GitHub dependencies
4949
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")'
50+
Rscript -e 'remotes::install_github("elgabbas/ecokit")'
51+
Rscript -e 'remotes::install_github("hmsc-r/HMSC")'
5252
5353
- name: Install remaining dependencies
5454
run: |
55-
Rscript -e 'remotes::install_deps(dependencies=c("Depends", "Imports"), repos="https://cran.r-project.org")'
56-
57-
- name: Verify pak is not installed
55+
Rscript -e 'remotes::install_deps(dependencies=c("Depends", "Imports")'
56+
# Run R CMD check (without relying on r-lib/actions)
57+
- name: Run R CMD check
5858
run: |
59-
Rscript -e 'if ("pak" %in% installed.packages()[, "Package"]) stop("Error: pak is installed!") else cat("No pak installed\n")'
59+
Rscript -e 'install.packages("rcmdcheck")'
60+
Rscript -e 'rcmdcheck::rcmdcheck(args="--no-manual", error_on="error")'
6061
6162
# - name: Install dependencies
6263
# uses: r-lib/actions/setup-r-dependencies@v2

0 commit comments

Comments
 (0)