Skip to content

Commit

Permalink
Add timeout=180 to allow sf, terra download (Bioconductor#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwokaty authored Mar 6, 2024
1 parent 79dc0c2 commit 6d38720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions saltstack/salt/rlang/mac.sls
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ reconfigure_R_to_use_Java:
{%- for pkg in r.difficult_pkgs %}
attempt_install_difficult_package_{{ pkg }}:
cmd.run:
- name: Rscript -e "install.packages('{{ pkg }}', repos='https://cran.r-project.org')"
- name: Rscript -e "options(timeout=180); install.packages('{{ pkg }}', repos='https://cran.r-project.org')"
- runas: {{ machine.user.name }}
- unless:
- ls /Library/Frameworks/R.framework/Resources/library | egrep {{ pkg }}
Expand All @@ -95,7 +95,7 @@ attempt_install_difficult_package_{{ pkg }}:

attempt_install_previous_version_of_{{ pkg }}:
cmd.run:
- name: Rscript -e "if (!('{{ pkg }}' %in% rownames(installed.packages()))) install.packages('{{ pkg }}', repos='https://cran.r-project.org/bin/macosx/{{ binary_path }}/{{ r.previous_version }}')"
- name: Rscript -e "options(timeout=180); if (!('{{ pkg }}' %in% rownames(installed.packages()))) install.packages('{{ pkg }}', repos='https://cran.r-project.org/bin/macosx/{{ binary_path }}/{{ r.previous_version }}')"
- runas: {{ machine.user.name }}
- unless:
- ls /Library/Frameworks/R.framework/Resources/library | egrep {{ pkg }}
Expand Down

0 comments on commit 6d38720

Please sign in to comment.