Last updated on 2025-08-15 10:48:32 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 2.1.0.6 | 9.65 | 130.24 | 139.89 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 2.1.0.6 | 6.64 | 95.32 | 101.96 | OK | |
r-devel-linux-x86_64-fedora-clang | 2.1.0.6 | 208.57 | OK | |||
r-devel-linux-x86_64-fedora-gcc | 2.1.0.6 | 215.72 | OK | |||
r-devel-windows-x86_64 | 2.1.0.6 | 10.00 | 163.00 | 173.00 | OK | |
r-patched-linux-x86_64 | 2.1.0.6 | 9.04 | 121.73 | 130.77 | OK | |
r-release-linux-x86_64 | 2.1.0.6 | 8.97 | 118.61 | 127.58 | OK | |
r-release-macos-arm64 | 2.1.0.6 | 122.00 | OK | |||
r-release-macos-x86_64 | 2.1.0.6 | 153.00 | NOTE | |||
r-release-windows-x86_64 | 2.1.0.6 | 12.00 | 163.00 | 175.00 | OK | |
r-oldrel-macos-arm64 | 2.1.0.6 | 118.00 | OK | |||
r-oldrel-macos-x86_64 | 2.1.0.6 | 174.00 | OK | |||
r-oldrel-windows-x86_64 | 2.1.0.6 | 13.00 | 209.00 | 222.00 | OK |
Version: 2.1.0.6
Check: tests
Result: ERROR
Running ‘testthat.R’ [25s/51s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library("testthat")
> library("rnrfa")
> # library("lintr")
>
> api_unavailable <- function(){
+ resp1 <- httr::GET(url = "https://nrfaapps.ceh.ac.uk/nrfa/ws/time-series",
+ query = list(format = "json-object", station = 39001,`data-type` = "gdf"),
+ httr::user_agent("https://github.com/ilapros/rnrfa"))
+ resp2 <- httr::GET(url = "https://nrfaapps.ceh.ac.uk/nrfa/ws/time-series",
+ query = list(format = "json-object", station = 39001,`data-type` = "cmr"),
+ httr::user_agent("https://github.com/ilapros/rnrfa"))
+ # if any of the two streams is not working skip tests
+ (httr::http_error(resp1) | httr::http_error(resp2))
+ }
>
> # skip_if_no_api() <- function() {
> # if (api_unavailable()) {
> # skip("API not available")
> # }
> # }
>
> if (!curl::has_internet()) {
+ message("No internet, cannot run tests")
+ }else {
+ test_check("rnrfa")
+ }
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 66 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-get_ts.R:69:3'): get_ts gdf multi works ──────────────────────
as.numeric(flow[[3]][1]) not equal to 1.262.
1/1 mismatches
[1] 0.588 - 1.26 == -0.674
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 66 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 2.1.0.6
Check: re-building of vignette outputs
Result: NOTE
Note: skipping ‘rnrfa-vignette.Rmd’ due to unavailable dependencies: 'DT'
Flavor: r-release-macos-x86_64