Skip to content

Commit

Permalink
Update timeout settings for downloading data
Browse files Browse the repository at this point in the history
  • Loading branch information
mengqi-z committed Oct 14, 2024
1 parent e621de3 commit b7d6574
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/R-CDM-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

- name: Increase download timeout
run: |
Rscript -e 'options(timeout = 300)'
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
extra-packages: any::covr, any::xml2
needs: coverage

- name: Increase download timeout
run: |
Rscript -e 'options(timeout = 300)'
- name: Test coverage
run: |
cov <- covr::package_coverage(
Expand Down
2 changes: 2 additions & 0 deletions R/pkg_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,8 @@ get_example_data <- function(download_url = '',
if(!dir.exists(data_dir)){dir.create(data_dir)}

# download data
options(timeout = 300)

utils::download.file(url = download_url,
destfile = dest_file,
mode = 'wb')
Expand Down

0 comments on commit b7d6574

Please sign in to comment.