1
1
mirror of https://github.com/mgree/ffs.git synced 2024-07-07 08:16:20 +03:00

Retry R installations (#57)

Network failures were causing spurious CI failures; we now try to install ggplot2 (and its dependencies) up to three times.
This commit is contained in:
Michael Greenberg 2021-11-08 19:21:38 -05:00 committed by GitHub
parent b9c6644312
commit a56a7e5607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,7 @@ jobs:
- name: Benchmarks
run: |
Rscript -e "install.packages('ggplot2', repos = 'https://cloud.r-project.org/')"
Rscript -e "tries <- 0; while (!require('ggplot2') && tries < 3) { cat(sprintf('TRY %d\n', tries)); install.packages('ggplot2', repos = 'https://cloud.r-project.org/'); tries <- tries + 1; }"
PATH="$(pwd)/target/release:$PATH" ./run_bench.sh -n 3
# grab latest directory (output of run_bench)
DATADIR=bench/$(ls -ct bench/ | head -n 1)

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
*.log
*.png
.Rhistory
.DS_Store