Skip to content

Commit

Permalink
[ci] stop relying on cran.microsoft.com in CI jobs (microsoft#5909)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Jun 5, 2023
1 parent ad487fe commit 36fe73a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .ci/test_r_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,8 @@ fi

# fix for issue where CRAN was not returning {lattice} when using R 3.6
# "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
Rscript --vanilla -e "install.packages('lattice', repos = 'https://cran.microsoft.com/snapshot/2020-04-23/', lib = '${R_LIB_PATH}')"
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}')"
fi

# Manually install Depends and Imports libraries + 'knitr', 'RhpcBLASctl', 'rmarkdown', 'testthat'
Expand Down

0 comments on commit 36fe73a

Please sign in to comment.