|
110 | 110 | # "Warning: dependency ‘lattice’ is not available" |
111 | 111 | if [[ "${R_MAJOR_VERSION}" == "3" ]]; then |
112 | 112 | Rscript --vanilla -e "install.packages('https://cran.r-project.org/src/contrib/Archive/lattice/lattice_0.20-41.tar.gz', repos = NULL, lib = '${R_LIB_PATH}')" |
| 113 | +else |
| 114 | + # {Matrix} needs {lattice}, so this needs to run before manually installing {Matrix}. |
| 115 | + # This should be unnecessary on R >=4.4.0 |
| 116 | + # ref: https://github.com/microsoft/LightGBM/issues/6433 |
| 117 | + Rscript --vanilla -e "install.packages('lattice', repos = '${CRAN_MIRROR}', lib = '${R_LIB_PATH}')" |
113 | 118 | fi |
114 | 119 |
|
| 120 | +# manually install {Matrix}, as {Matrix}=1.7-0 raised its R floor all the way to R 4.4.0 |
| 121 | +# ref: https://github.com/microsoft/LightGBM/issues/6433 |
| 122 | +Rscript --vanilla -e "install.packages('https://cran.r-project.org/src/contrib/Archive/Matrix/Matrix_1.6-5.tar.gz', repos = NULL, lib = '${R_LIB_PATH}')" |
| 123 | + |
115 | 124 | # Manually install Depends and Imports libraries + 'knitr', 'markdown', 'RhpcBLASctl', 'testthat' |
116 | 125 | # to avoid a CI-time dependency on devtools (for devtools::install_deps()) |
117 | 126 | # NOTE: testthat is not required when running rchk |
118 | 127 | if [[ "${TASK}" == "r-rchk" ]]; then |
119 | | - packages="c('data.table', 'jsonlite', 'knitr', 'markdown', 'Matrix', 'R6', 'RhpcBLASctl')" |
| 128 | + packages="c('data.table', 'jsonlite', 'knitr', 'markdown', 'R6', 'RhpcBLASctl')" |
120 | 129 | else |
121 | | - packages="c('data.table', 'jsonlite', 'knitr', 'markdown', 'Matrix', 'R6', 'RhpcBLASctl', 'testthat')" |
| 130 | + packages="c('data.table', 'jsonlite', 'knitr', 'markdown', 'R6', 'RhpcBLASctl', 'testthat')" |
122 | 131 | fi |
123 | 132 | compile_from_source="both" |
124 | 133 | if [[ $OS_NAME == "macos" ]]; then |
|
0 commit comments