Skip to content

Commit

Permalink
Update R-CMD-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicenJoyHenning authored Aug 11, 2024
1 parent a8cc44b commit 14464ff
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,29 @@ jobs:
run: |
sudo apt-get install -y libmagick++-dev
- name: Check internet connection
- name: Install R package dependencies with retries
run: |
ping -c 3 cran.r-project.org
- name: Install R package dependencies
run: |
install.packages('devtools')
install.packages('remotes')
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Retry installing devtools if failed
if: failure()
RETRY_COUNT=5
RETRY_DELAY=10
for i in $(seq 1 $RETRY_COUNT); do
Rscript -e 'install.packages("devtools")' && break || sleep $RETRY_DELAY
done
for i in $(seq 1 $RETRY_COUNT); do
Rscript -e 'install.packages("remotes")' && break || sleep $RETRY_DELAY
done
for i in $(seq 1 $RETRY_COUNT); do
Rscript -e 'remotes::install_deps(dependencies = TRUE)' && break || sleep $RETRY_DELAY
done
shell: bash

- name: Install DropletQC from GitHub with retries
run: |
install.packages('devtools')
shell: Rscript {0}

- name: Install DropletQC from GitHub
run: |
devtools::install_github("powellgenomicslab/DropletQC")
shell: Rscript {0}
RETRY_COUNT=5
RETRY_DELAY=10
for i in $(seq 1 $RETRY_COUNT); do
Rscript -e 'devtools::install_github("powellgenomicslab/DropletQC")' && break || sleep $RETRY_DELAY
done
shell: bash

- name: Check package
run: |
Expand Down

0 comments on commit 14464ff

Please sign in to comment.