Last updated on 2025-03-13 02:53:41 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.1.1 | 4.32 | 44.75 | 49.07 | OK | |
r-devel-linux-x86_64-debian-gcc | 0.1.1 | 3.39 | 33.76 | 37.15 | OK | |
r-devel-linux-x86_64-fedora-clang | 0.1.1 | 78.85 | NOTE | |||
r-devel-linux-x86_64-fedora-gcc | 0.1.1 | 88.10 | NOTE | |||
r-devel-macos-arm64 | 0.1.1 | 38.00 | OK | |||
r-devel-macos-x86_64 | 0.1.1 | 104.00 | OK | |||
r-devel-windows-x86_64 | 0.1.1 | 7.00 | 96.00 | 103.00 | ERROR | |
r-patched-linux-x86_64 | 0.1.1 | OK | ||||
r-release-linux-x86_64 | 0.1.1 | 4.23 | 41.40 | 45.63 | OK | |
r-release-macos-arm64 | 0.1.1 | 39.00 | OK | |||
r-release-macos-x86_64 | 0.1.1 | 84.00 | OK | |||
r-release-windows-x86_64 | 0.1.1 | 7.00 | 65.00 | 72.00 | OK | |
r-oldrel-macos-arm64 | 0.1.1 | OK | ||||
r-oldrel-macos-x86_64 | 0.1.1 | 53.00 | OK | |||
r-oldrel-windows-x86_64 | 0.1.1 | 10.00 | 70.00 | 80.00 | OK |
Version: 0.1.1
Check: dependencies in R code
Result: NOTE
Namespaces in Imports field not imported from:
‘devtools’ ‘xml2’
All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.1.1
Check: tests
Result: ERROR
Running 'testthat.R' [32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(newsanchor)
> library(askpass)
> test_check("newsanchor")
[ FAIL 3 | WARN 0 | SKIP 10 | PASS 20 ]
══ Skipped tests (10) ══════════════════════════════════════════════════════════
• NEWS_API_TEST_KEY not available in environment. Skipping test. (10):
'test_get_everything.R:95:3', 'test_get_everything.R:104:3',
'test_get_everything.R:114:3', 'test_get_headlines.R:54:3',
'test_get_headlines.R:62:3', 'test_get_headlines.R:72:3',
'test_get_headlines.R:86:3', 'test_get_sources.R:30:3',
'test_get_sources.R:40:3', 'test_get_sources.R:50:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_get_everything.R:88:3'): test that function raises warning if API key invalid. ──
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [newsapi.org]: SSL/TLS connection timeout
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_get_everything.R:88:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─newsanchor::get_everything(api_key = "thisisnotanapikey", query = "sports")
7. │ └─newsanchor:::make_newsanchor_get_request(url = url, api_key = api_key)
8. │ └─httr::GET(url, httr::add_headers(`X-Api-Key` = api_key))
9. │ └─httr:::request_perform(req, hu$handle$handle)
10. │ ├─httr:::request_fetch(req$output, req$url, handle)
11. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
12. │ └─curl::curl_fetch_memory(url, handle = handle)
13. └─curl:::raise_libcurl_error(...)
── Error ('test_get_headlines.R:47:3'): test that function raises warning if API key invalid. ──
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [newsapi.org]: SSL/TLS connection timeout
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_get_headlines.R:47:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─newsanchor::get_headlines(api_key = "thisisnotanapikey", query = "sports")
7. │ └─newsanchor:::make_newsanchor_get_request(url = url, api_key = api_key)
8. │ └─httr::GET(url, httr::add_headers(`X-Api-Key` = api_key))
9. │ └─httr:::request_perform(req, hu$handle$handle)
10. │ ├─httr:::request_fetch(req$output, req$url, handle)
11. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
12. │ └─curl::curl_fetch_memory(url, handle = handle)
13. └─curl:::raise_libcurl_error(...)
── Error ('test_get_sources.R:24:3'): that that function raises warning if invalid API key is specified. ──
<curl_error_operation_timedout/curl_error/error/condition>
Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached [newsapi.org]: SSL/TLS connection timeout
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_get_sources.R:24:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. ├─newsanchor::get_sources(api_key = "thisisnotanapikey")
7. │ └─newsanchor:::make_newsanchor_get_request(url, api_key)
8. │ └─httr::GET(url, httr::add_headers(`X-Api-Key` = api_key))
9. │ └─httr:::request_perform(req, hu$handle$handle)
10. │ ├─httr:::request_fetch(req$output, req$url, handle)
11. │ └─httr:::request_fetch.write_memory(req$output, req$url, handle)
12. │ └─curl::curl_fetch_memory(url, handle = handle)
13. └─curl:::raise_libcurl_error(...)
[ FAIL 3 | WARN 0 | SKIP 10 | PASS 20 ]
Error: Test failures
Execution halted
Flavor: r-devel-windows-x86_64