@@ -40,10 +40,13 @@ jobs:
4040 uses : r-lib/actions/setup-r@v2
4141 with :
4242 use-public-rspm : true
43+
44+ - name : Install necessary packages, including some pinned package versions
45+ run : |
46+ Rscript -e 'install.packages(c("rcmdcheck", "remotes", "Rcpp", "RcppArmadillo", "tidyverse", "terra", "sf", "coda", "foreach", "fs", "future", "future.apply", "rlang", "DT", "kableExtra", "knitr", "rmarkdown", "archive", "arrow", "caret", "colorRamps", "devtools", "doParallel", "ecospat", "fastmatch", "float", "furrr", "gdata", "ggbreak", "ggnewscale", "ggtext", "gridtext", "gt", "gtools", "janitor", "jsonify", "lobstr", "ncdf4", "pak", "pbapply", "png", "quarto", "R.utils", "RCurl", "Rfast", "rgbif", "RNetCDF", "rworldmap", "smoothr", "snow", "spelling", "testthat", "writexl", "zip", "tidyterra", "exactextractr", "blockCV"), Ncpus = parallel::detectCores())'
4347
44- - name : Install packages, including some pinned package versions
48+ - name : Install some pinned package versions
4549 run : |
46- Rscript -e 'install.packages(c("rcmdcheck", "remotes", "Rcpp", "RcppArmadillo", "tidyverse", "terra", "sf", "coda", "foreach", "fs", "future", "future.apply", "rlang", "DT", "kableExtra", "knitr", "rmarkdown", "archive", "arrow", "caret", "colorRamps", "devtools", "doParallel", "ecospat", "fastmatch", "float", "furrr", "gdata", "ggbreak", "ggnewscale", "ggtext", "gridtext", "gt", "gtools", "janitor", "jsonify", "lobstr", "ncdf4", "pak", "pbapply", "png", "quarto", "R.utils", "RCurl", "Rfast", "rgbif", "RNetCDF", "rworldmap", "smoothr", "snow", "spelling", "testthat", "writexl", "zip", "tidyterra"), Ncpus = parallel::detectCores())'
4750 Rscript -e 'remotes::install_version("scales", version="1.3.0")'
4851 Rscript -e 'remotes::install_version("pkgdown", version="2.0.7")'
4952 Rscript -e 'remotes::install_version("lintr", version="3.0.0")'
@@ -52,14 +55,29 @@ jobs:
5255 Rscript -e 'remotes::install_version("cowplot", version="1.1.3")'
5356 Rscript -e 'remotes::install_version("ggpubr", version="0.6.0")'
5457 Rscript -e 'remotes::install_version("ggExtra", version="0.10.1")'
55- Rscript -e 'remotes::install_github(c("elgabbas/ecokit", "hmsc-r/HMSC", "EmilHvitfeldt/paletteer", "isciences/exactextractr", "rvalavi/blockCV", "YuLab-SMU/ggtree", "babaknaimi/sdm"))'
58+ Rscript -e 'packageVersion("scales")'
59+ Rscript -e 'packageVersion("pkgdown")'
60+ Rscript -e 'packageVersion("sessioninfo")'
61+ Rscript -e 'packageVersion("lintr")'
62+ Rscript -e 'packageVersion("ggplot2")'
63+ Rscript -e 'packageVersion("cowplot")'
64+ Rscript -e 'packageVersion("ggpubr")'
65+ Rscript -e 'packageVersion("ggExtra")'
66+ Rscript -e 'packageVersion("exactextractr")'
67+ Rscript -e 'packageVersion("blockCV")'
68+
69+ - name : Install packages from github
70+ run : |
71+ Rscript -e 'remotes::install_github(c("elgabbas/ecokit", "hmsc-r/HMSC", "EmilHvitfeldt/paletteer", "YuLab-SMU/ggtree", "babaknaimi/sdm"))'
5672
5773 - name : Install remaining dependencies
5874 run : |
5975 Rscript -e 'remotes::install_deps(dependencies=c("Depends", "Imports"))'
6076
6177 # Run R CMD check (without relying on r-lib/actions)
6278 - name : Run R CMD check
79+ env :
80+ _R_CHECK_FORCE_SUGGESTS_ : false
6381 run : |
6482 Rscript -e 'rcmdcheck::rcmdcheck(args="--no-manual", error_on="error")'
6583
0 commit comments