CRAN Package Check Results for Package hyd1d

Last updated on 2023-09-30 19:55:49 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.4.6 15.94 168.06 184.00 OK
r-devel-linux-x86_64-debian-gcc 0.4.6 12.35 135.19 147.54 OK
r-devel-linux-x86_64-fedora-clang 0.4.6 217.64 OK
r-devel-linux-x86_64-fedora-gcc 0.4.6 235.96 OK
r-devel-windows-x86_64 0.4.6 12.00 158.00 170.00 OK
r-patched-linux-x86_64 0.4.6 15.24 166.97 182.21 ERROR
r-release-linux-x86_64 0.4.6 14.85 169.28 184.13 OK
r-release-macos-arm64 0.4.6 282.00 OK
r-release-macos-x86_64 0.4.6 445.00 OK
r-release-windows-x86_64 0.4.6 19.00 194.00 213.00 ERROR
r-oldrel-macos-arm64 0.4.6 233.00 OK
r-oldrel-macos-x86_64 0.4.6 259.00 OK
r-oldrel-windows-x86_64 0.4.6 18.00 188.00 206.00 OK

Check Details

Version: 0.4.6
Check: tests
Result: ERROR
     Running ‘testthat.R’ [20s/30s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(hyd1d)
     'df.gauging_data' locally stored at
     /tmp/RtmpS37pqK/df.gauging_data_latest.RDS
     was last downloaded 2023-09-27 09:31:00 CEST
     >
     > test_check("hyd1d")
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 136 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test_getW.R:83:5'): getPegelonlineW ─────────────────────────────────
     Error in `(function (classes, fdef, mtable)
     {
     methods <- .findInheritedMethods(classes, fdef, mtable)
     if (length(methods) == 1L)
     return(methods[[1L]])
     else if (length(methods) == 0L) {
     cnames <- paste0("\"", vapply(classes, as.character,
     ""), "\"", collapse = ", ")
     stop(gettextf("unable to find an inherited method for function %s for signature %s",
     sQuote(fdef@generic), sQuote(cnames)), domain = NA)
     }
     else stop("Internal error in finding inherited methods; didn't return a unique method",
     domain = NA)
     })(list("logical", structure("missing", package = "methods")),
     new("standardGeneric", .Data = function (content, handler = NULL,
     default.size = 100, depth = 150L, allowComments = TRUE,
     asText = isContent(content), data = NULL, maxChar = c(0L,
     nchar(content)), simplify = Strict, nullValue = NULL,
     simplifyWithNames = TRUE, encoding = NA_character_, stringFun = NULL,
     ...)
     standardGeneric("fromJSON"), generic = structure("fromJSON", package = "RJSONIO"),
     package = "RJSONIO", group = list(), valueClass = character(0),
     signature = c("content", "handler", "default.size", "depth",
     "allowComments", "asText", "data", "maxChar", "simplify",
     "nullValue", "simplifyWithNames", "encoding", "stringFun"
     ), default = NULL, skeleton = (function (content, handler = NULL,
     default.size = 100, depth = 150L, allowComments = TRUE,
     asText = isContent(content), data = NULL, maxChar = c(0L,
     nchar(content)), simplify = Strict, nullValue = NULL,
     simplifyWithNames = TRUE, encoding = NA_character_,
     stringFun = NULL, ...)
     stop(gettextf("invalid call in method dispatch to '%s' (no default method)",
     "fromJSON"), domain = NA))(content, handler, default.size,
     depth, allowComments, asText, data, maxChar, simplify,
     nullValue, simplifyWithNames, encoding, stringFun,
     ...)), <environment>)`: unable to find an inherited method for function 'fromJSON' for signature '"logical", "missing"'
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test_getW.R:83:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─hyd1d::getPegelonlineW("SCHOENA", Sys.Date() - 10)
     5. └─RJSONIO::fromJSON(w_string)
     6. └─methods (local) `<fn>`(`<list>`, `<stndrdGn>`, `<env>`)
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 136 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.4.6
Check: examples
Result: ERROR
    Running examples in 'hyd1d-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: getPegelonlineW
    > ### Title: Get W from pegelonline.wsv.de for the specified gauging station
    > ### and time
    > ### Aliases: getPegelonlineW
    >
    > ### ** Examples
    >
    > getPegelonlineW(gauging_station = "DESSAU", time = Sys.time() - 3600)
    [1] 68
    > getPegelonlineW(gauging_station = "DESSAU", time = Sys.Date() - 1)
    Warning in utils::download.file(url, tf, method = method, quiet = TRUE, :
     URL 'https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/1edc5fa4-88af-47f5-95a4-0e77a06fe8b1/W/measurements.json?start=2023-09-27T00:00%2B01:00&end=2023-09-28T00:00%2B01:00': status was 'Failure when receiving data from the peer'
    It was not possible to access gauging data from
    https://pegelonline.wsv.de
    Please try again later, if the server was not available.
    Please read the notes if you recieve an SSL error.
    Error in utils::download.file(url, tf, method = method, quiet = TRUE, : cannot open URL 'https://www.pegelonline.wsv.de/webservices/rest-api/v2/stations/1edc5fa4-88af-47f5-95a4-0e77a06fe8b1/W/measurements.json?start=2023-09-27T00:00%2B01:00&end=2023-09-28T00:00%2B01:00'
    
    Error in (function (classes, fdef, mtable) :
     unable to find an inherited method for function 'fromJSON' for signature '"logical", "missing"'
    Calls: getPegelonlineW -> <Anonymous> -> <Anonymous>
    Execution halted
Flavor: r-release-windows-x86_64

Version: 0.4.6
Check: tests
Result: ERROR
     Running 'testthat.R' [21s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(hyd1d)
     'df.gauging_data' locally stored at
     D:\temp\RtmpgF3sB1/df.gauging_data_latest.RDS
     was last downloaded 2023-09-28 07:53:10 CEST
     >
     > test_check("hyd1d")
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 136 ]
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error ('test_getW.R:83:5'): getPegelonlineW ─────────────────────────────────
     Error in `(function (classes, fdef, mtable)
     {
     methods <- .findInheritedMethods(classes, fdef, mtable)
     if (length(methods) == 1L)
     return(methods[[1L]])
     else if (length(methods) == 0L) {
     cnames <- paste0("\"", vapply(classes, as.character,
     ""), "\"", collapse = ", ")
     stop(gettextf("unable to find an inherited method for function %s for signature %s",
     sQuote(fdef@generic), sQuote(cnames)), domain = NA)
     }
     else stop("Internal error in finding inherited methods; didn't return a unique method",
     domain = NA)
     })(list("logical", structure("missing", package = "methods")),
     new("standardGeneric", .Data = function (content, handler = NULL,
     default.size = 100, depth = 150L, allowComments = TRUE,
     asText = isContent(content), data = NULL, maxChar = c(0L,
     nchar(content)), simplify = Strict, nullValue = NULL,
     simplifyWithNames = TRUE, encoding = NA_character_, stringFun = NULL,
     ...)
     standardGeneric("fromJSON"), generic = structure("fromJSON", package = "RJSONIO"),
     package = "RJSONIO", group = list(), valueClass = character(0),
     signature = c("content", "handler", "default.size", "depth",
     "allowComments", "asText", "data", "maxChar", "simplify",
     "nullValue", "simplifyWithNames", "encoding", "stringFun"
     ), default = NULL, skeleton = (function (content, handler = NULL,
     default.size = 100, depth = 150L, allowComments = TRUE,
     asText = isContent(content), data = NULL, maxChar = c(0L,
     nchar(content)), simplify = Strict, nullValue = NULL,
     simplifyWithNames = TRUE, encoding = NA_character_,
     stringFun = NULL, ...)
     stop(gettextf("invalid call in method dispatch to '%s' (no default method)",
     "fromJSON"), domain = NA))(content, handler, default.size,
     depth, allowComments, asText, data, maxChar, simplify,
     nullValue, simplifyWithNames, encoding, stringFun,
     ...)), <environment>)`: unable to find an inherited method for function 'fromJSON' for signature '"logical", "missing"'
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test_getW.R:83:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. └─hyd1d::getPegelonlineW("SCHOENA", Sys.Date() - 10)
     5. └─RJSONIO::fromJSON(w_string)
     6. └─methods (local) `<fn>`(`<list>`, `<stndrdGn>`, `<env>`)
    
     [ FAIL 1 | WARN 1 | SKIP 0 | PASS 136 ]
     Error: Test failures
     Execution halted
Flavor: r-release-windows-x86_64