- using R version 4.4.3 (2025-02-28)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.2.0-16) 14.2.0
GNU Fortran (Debian 14.2.0-16) 14.2.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘OCSdata/DESCRIPTION’ ... OK
- this is package ‘OCSdata’ version ‘1.0.2’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘OCSdata’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [6s/7s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [1s/11s] ERROR
Running examples in ‘OCSdata-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: extra_data
> ### Title: Download Open Case Study Extra Data
> ### Aliases: extra_data
>
> ### ** Examples
>
> tmp = tempfile()
> dir.create(tmp)
> extra_data('ocs-bp-opioid-rural-urban', outpath = tmp)
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached [api.github.com]: Connection timed out after 10001 milliseconds
Calls: extra_data ... request_fetch.write_memory -> <Anonymous> -> raise_libcurl_error
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/133s] ERROR
Running ‘testthat.R’ [2s/132s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(OCSdata)
>
> test_check("OCSdata")
v Downloading from
<https://github.com/opencasestudies/ocs-bp-co2-emissions/zipball/HEAD>.
i Retrying download ... attempt 2.
i Retrying download ... attempt 3.
[ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-extra_data.R:4:3'): extra_data works ───────────────────────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.github.com]: Connection timed out after 10002 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-extra_data.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─OCSdata::extra_data("ocs-bp-opioid-rural-urban", outpath = tmp)
5. │ └─httr::GET(url = repo_url)
6. │ └─httr:::request_perform(req, hu$handle$handle)
7. │ ├─httr:::request_fetch(req$output, req$url, handle)
8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. │ └─curl::curl_fetch_memory(url, handle = handle)
10. └─curl:::raise_libcurl_error(...)
── Error ('test-imported_data.R:4:3'): imported_data works ─────────────────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.github.com]: Connection timed out after 10004 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-imported_data.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─OCSdata::imported_data("ocs-bp-opioid-rural-urban", outpath = tmp)
5. │ └─httr::GET(url = repo_url)
6. │ └─httr:::request_perform(req, hu$handle$handle)
7. │ ├─httr:::request_fetch(req$output, req$url, handle)
8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. │ └─curl::curl_fetch_memory(url, handle = handle)
10. └─curl:::raise_libcurl_error(...)
── Error ('test-raw_data.R:4:3'): raw_data works ───────────────────────────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.github.com]: Connection timed out after 10004 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-raw_data.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─OCSdata::raw_data("ocs-bp-opioid-rural-urban", outpath = tmp)
5. │ └─httr::GET(url = repo_url)
6. │ └─httr:::request_perform(req, hu$handle$handle)
7. │ ├─httr:::request_fetch(req$output, req$url, handle)
8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. │ └─curl::curl_fetch_memory(url, handle = handle)
10. └─curl:::raise_libcurl_error(...)
── Error ('test-simpler_import_data.R:4:3'): simpler_import_data works ─────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.github.com]: Connection timed out after 10002 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-simpler_import_data.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─OCSdata::simpler_import_data("ocs-bp-opioid-rural-urban", outpath = tmp)
5. │ └─httr::GET(url = repo_url)
6. │ └─httr:::request_perform(req, hu$handle$handle)
7. │ ├─httr:::request_fetch(req$output, req$url, handle)
8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. │ └─curl::curl_fetch_memory(url, handle = handle)
10. └─curl:::raise_libcurl_error(...)
── Error ('test-wrangled_csv.R:4:3'): wrangled_csv works ───────────────────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.github.com]: Connection timed out after 10002 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-wrangled_csv.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─OCSdata::wrangled_csv("ocs-bp-opioid-rural-urban", outpath = tmp)
5. │ └─httr::GET(url = repo_url)
6. │ └─httr:::request_perform(req, hu$handle$handle)
7. │ ├─httr:::request_fetch(req$output, req$url, handle)
8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. │ └─curl::curl_fetch_memory(url, handle = handle)
10. └─curl:::raise_libcurl_error(...)
── Error ('test-wrangled_rda.R:4:3'): wrangled_rda works ───────────────────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [api.github.com]: Connection timed out after 10002 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-wrangled_rda.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─OCSdata::wrangled_rda("ocs-bp-opioid-rural-urban", outpath = tmp)
5. │ └─httr::GET(url = repo_url)
6. │ └─httr:::request_perform(req, hu$handle$handle)
7. │ ├─httr:::request_fetch(req$output, req$url, handle)
8. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
9. │ └─curl::curl_fetch_memory(url, handle = handle)
10. └─curl:::raise_libcurl_error(...)
── Error ('test-zip_ocs.R:4:3'): zip_ocs works ─────────────────────────────────
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_download(url = url, destfile = destfile, quiet = quiet,
mode = mode, handle = handle)`: Timeout was reached [github.com]: Connection timed out after 40002 milliseconds
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-zip_ocs.R:4:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─OCSdata::zip_ocs("ocs-bp-co2-emissions", outpath = tmp)
5. └─usethis::use_zip(...)
6. └─usethis:::tidy_download(url, destdir)
7. └─usethis:::download_url(url, destfile = tmp)
[ FAIL 7 | WARN 0 | SKIP 0 | PASS 0 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/5s] OK
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs