Unverified Commit d48ade1f authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] use an MRAN snapshot for R 3.6 Linux jobs (fixes #5898) (#5903)

parent 4536f435
...@@ -120,8 +120,12 @@ fi ...@@ -120,8 +120,12 @@ fi
# fix for issue where CRAN was not returning {lattice} when using R 3.6 # fix for issue where CRAN was not returning {lattice} when using R 3.6
# "Warning: dependency ‘lattice’ is not available" # "Warning: dependency ‘lattice’ is not available"
#
# refs for that MRAN snapshot:
# * https://cran.r-project.org/web/packages/checkpoint/readme/README.html
# * https://help.codeocean.com/en/articles/3087704-using-mran-snapshots-to-install-archived-r-packages
if [[ "${R_MAJOR_VERSION}" == "3" ]]; then if [[ "${R_MAJOR_VERSION}" == "3" ]]; then
Rscript --vanilla -e "install.packages('lattice', repos = 'https://mran.microsoft.com', lib = '${R_LIB_PATH}')" Rscript --vanilla -e "install.packages('lattice', repos = 'https://cran.microsoft.com/snapshot/2020-04-23/', lib = '${R_LIB_PATH}')"
fi fi
# Manually install Depends and Imports libraries + 'knitr', 'RhpcBLASctl', 'rmarkdown', 'testthat' # Manually install Depends and Imports libraries + 'knitr', 'RhpcBLASctl', 'rmarkdown', 'testthat'
......
...@@ -44,6 +44,12 @@ if ($env:TASK -eq "swig") { ...@@ -44,6 +44,12 @@ if ($env:TASK -eq "swig") {
conda init powershell conda init powershell
conda activate conda activate
conda config --set always_yes yes --set changeps1 no conda config --set always_yes yes --set changeps1 no
# ref:
# * https://stackoverflow.com/a/62897729/3986677
# * https://github.com/microsoft/LightGBM/issues/5899
conda install brotlipy
conda update -q -y conda conda update -q -y conda
conda create -q -y -n $env:CONDA_ENV ` conda create -q -y -n $env:CONDA_ENV `
cloudpickle ` cloudpickle `
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment