CRAN Package Check Results for Package osrmr

Last updated on 2018-09-26 01:46:35 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.29 1.11 22.65 23.76 OK
r-devel-linux-x86_64-debian-gcc 0.1.29 1.02 18.01 19.03 OK
r-devel-linux-x86_64-fedora-clang 0.1.29 28.32 OK
r-devel-linux-x86_64-fedora-gcc 0.1.29 27.34 OK
r-devel-windows-ix86+x86_64 0.1.29 3.00 35.00 38.00 OK
r-patched-linux-x86_64 0.1.29 1.14 20.31 21.45 OK
r-patched-solaris-x86 0.1.29 40.90 OK
r-release-linux-x86_64 0.1.29 1.18 20.55 21.73 OK
r-release-windows-ix86+x86_64 0.1.29 2.00 43.00 45.00 ERROR
r-release-osx-x86_64 0.1.29 OK
r-oldrel-windows-ix86+x86_64 0.1.29 2.00 46.00 48.00 ERROR
r-oldrel-osx-x86_64 0.1.29 OK

Check Details

Version: 0.1.29
Check: tests
Result: ERROR
     Running 'testthat.R' [2s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(osrmr)
     >
     > test_check("osrmr")
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     -- 1. Error: viaroute finds routes (@test-basic_functions.R#15) ---------------
     reached elapsed time limit
     1: expect_equal(viaroute(lat1, lng1, lat2, lng2, F, api_version, localhost), 1560, tolerance = 300,
     scale = 1) at testthat/test-basic_functions.R:15
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: viaroute(lat1, lng1, lat2, lng2, F, api_version, localhost)
     5: viaroute_api_v5(lat1, lng1, lat2, lng2, instructions, address)
     6: R.utils::withTimeout({
     repeat {
     res <- try(route <- rjson::fromJSON(file = request))
     if (class(res) != "try-error") {
     if (!is.null(res)) {
     break
     }
     else {
     stop("in sim911::osrm_viaroute: calculate nearest necessary?")
     }
     }
     }
     }, timeout = 1, onTimeout = "warning")
     7: tryCatch({
     eval(expr, envir = envir)
     }, error = function(ex) {
     msg <- ex$message
     pattern <- gettext("reached elapsed time limit", "reached CPU time limit", domain = "R")
     pattern <- paste(pattern, collapse = "|")
     if (regexpr(pattern, msg) != -1L) {
     ex <- TimeoutException(msg, cpu = cpu, elapsed = elapsed)
     if (onTimeout == "error") {
     throw(ex)
     }
     else if (onTimeout == "warning") {
     warning(getMessage(ex))
     }
     else if (onTimeout == "silent") {
     }
     }
     else {
     throw(ex)
     }
     })
     8: tryCatchList(expr, classes, parentenv, handlers)
     9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     10: doTryCatch(return(expr), name, parentenv, handler)
     ...
     29: o_apply(self$reporters, "add_result", context = context, test = test, result = result)
     30: lapply(objects, function(x) x[[method]](...))
     31: FUN(X[[i]], ...)
     32: x[[method]](...)
     33: expectation_ok(result)
     34: expectation_type(exp) %in% c("success", "warning")
     35: expectation_type(exp)
     36: stopifnot(is.expectation(exp))
     37: match.call()
     38: sys.function(sys.parent())
    
     == testthat results ===========================================================
     OK: 13 SKIPPED: 1 FAILED: 1
     1. Error: viaroute finds routes (@test-basic_functions.R#15)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 0.1.29
Check: tests
Result: ERROR
     Running 'testthat.R' [4s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(osrmr)
     >
     > test_check("osrmr")
     Error in file(con, "r") : cannot open the connection
     Error in file(con, "r") : cannot open the connection
     -- 1. Error: viaroute finds routes (@test-basic_functions.R#15) ---------------
     $ operator is invalid for atomic vectors
     1: expect_equal(viaroute(lat1, lng1, lat2, lng2, F, api_version, localhost), 1560, tolerance = 300,
     scale = 1) at testthat/test-basic_functions.R:15
     2: quasi_label(enquo(object), label)
     3: eval_bare(get_expr(quo), get_env(quo))
     4: viaroute(lat1, lng1, lat2, lng2, F, api_version, localhost)
     5: viaroute_api_v5(lat1, lng1, lat2, lng2, instructions, address)
     6: assertthat::assert_that(assertthat::is.number(res$routes[[1]]$duration))
     7: see_if(..., env = env, msg = msg)
     8: tryCatch({
     eval(assertion, env)
     }, assertError = function(e) {
     structure(FALSE, msg = e$message)
     })
     9: tryCatchList(expr, classes, parentenv, handlers)
     10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     11: doTryCatch(return(expr), name, parentenv, handler)
     12: eval(assertion, env)
     13: eval(assertion, env)
     14: assertthat::is.number(res$routes[[1]]$duration)
    
     == testthat results ===========================================================
     OK: 10 SKIPPED: 1 FAILED: 1
     1. Error: viaroute finds routes (@test-basic_functions.R#15)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64