CRAN Package Check Results for Package roahd

Last updated on 2020-02-17 22:49:45 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.4.1 9.68 158.52 168.20 ERROR
r-devel-linux-x86_64-debian-gcc 1.4.1 7.47 112.47 119.94 ERROR
r-devel-linux-x86_64-fedora-clang 1.4.1 193.37 ERROR
r-devel-linux-x86_64-fedora-gcc 1.4.1 182.51 ERROR
r-devel-windows-ix86+x86_64 1.4.1 14.00 176.00 190.00 OK
r-devel-windows-ix86+x86_64-gcc8 1.4.1 24.00 183.00 207.00 OK
r-patched-linux-x86_64 1.4.1 9.39 147.52 156.91 OK
r-patched-solaris-x86 1.4.1 269.80 NOTE
r-release-linux-x86_64 1.4.1 8.22 149.64 157.86 OK
r-release-windows-ix86+x86_64 1.4.1 12.00 155.00 167.00 OK
r-release-osx-x86_64 1.4.1 OK
r-oldrel-windows-ix86+x86_64 1.4.1 11.00 165.00 176.00 OK
r-oldrel-osx-x86_64 1.4.1 OK

Check Details

Version: 1.4.1
Check: examples
Result: ERROR
    Running examples in 'roahd-Ex.R' failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: BD_relative
    > ### Title: Relative Band Depth of functions in a univariate functional
    > ### dataset
    > ### Aliases: BD_relative BD_relative.fData BD_relative.default
    >
    > ### ** Examples
    >
    >
    > grid = seq( 0, 1, length.out = 1e2 )
    >
    > Data_ref = matrix( c( 0 + sin( 2 * pi * grid ),
    + 1 + sin( 2 * pi * grid ),
    + -1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_1 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = 1, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_2 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = length( grid ), ncol = 1, byrow = TRUE )
    >
    > Data_test_3 = 0.6 + sin( 2 * pi * grid )
    >
    > Data_test_4 = array( 0.6 + sin( 2 * pi * grid ), dim = length( grid ) )
    >
    > Data_test_5 = array( 0.6 + sin( 2 * pi * grid ), dim = c( 1, length( grid ) ) )
    >
    > Data_test_6 = array( 0.6 + sin( 2 * pi * grid ), dim = c( length( grid ), 1 ) )
    >
    > Data_test_7 = matrix( c( 0.5 + sin( 2 * pi * grid ),
    + -0.5 + sin( 2 * pi * grid ),
    + 1.1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > fD_ref = fData( grid, Data_ref )
    > fD_test_1 = fData( grid, Data_test_1 )
    > fD_test_2 = fData( grid, Data_test_2 )
    > fD_test_3 = fData( grid, Data_test_3 )
    > fD_test_4 = fData( grid, Data_test_4 )
    > fD_test_5 = fData( grid, Data_test_5 )
    > fD_test_6 = fData( grid, Data_test_6 )
    > fD_test_7 = fData( grid, Data_test_7 )
    >
    > BD_relative( fD_test_1, fD_ref )
    [1] 0.6666667
    > BD_relative( Data_test_1, Data_ref )
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    roahd
     --- call from context ---
    BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
    if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
    }
     --- R stacktrace ---
    where 1: BD_relative(Data_test_1, Data_ref)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Data_target, Data_reference)
    {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
    }
    <bytecode: 0x11cef48>
    <environment: namespace:roahd>
     --- function search by body ---
    Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Data_target) != class(Data_reference)) { :
     the condition has length > 1
    Calls: BD_relative
    Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.4.1
Check: tests
Result: ERROR
     Running 'testthat.R' [63s/67s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(roahd)
     >
     > test_check("roahd")
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#32: test_that("Correctness of relative BD (single test function in row matrix form)",
     expect_equal(BD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 1. Error: Correctness of relative BD (single test function in row matrix form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#35: test_that("Correctness of relative BD (single test function in column matrix form)",
     expect_equal(BD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 2. Error: Correctness of relative BD (single test function in column matrix f
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#38: test_that("Correctness of relative BD (single test function in vector form)",
     expect_equal(BD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 3. Error: Correctness of relative BD (single test function in vector form) -
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#41: test_that("Correctness of relative BD (single test function in 1D array form)",
     expect_equal(BD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 4. Error: Correctness of relative BD (single test function in 1D array form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#44: test_that("Correctness of relative BD (single test function in row-like 2D array form)",
     expect_equal(BD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 5. Error: Correctness of relative BD (single test function in row-like 2D arr
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#47: test_that("Correctness of relative BD (single test function in column-like 2D array form)",
     expect_equal(BD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 6. Error: Correctness of relative BD (single test function in column-like 2D
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#50: test_that("Correctness of relative BD (multiple test function)",
     expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 7. Error: Correctness of relative BD (multiple test function) --------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::BD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#31: test_that("Correctness of relative MBD (single test function in row matrix form)",
     expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 8. Error: Correctness of relative MBD (single test function in row matrix for
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#34: test_that("Correctness of relative MBD (single test function in column matrix form)",
     expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 9. Error: Correctness of relative MBD (single test function in column matrix
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#37: test_that("Correctness of relative MBD (single test function in vector form)",
     expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 10. Error: Correctness of relative MBD (single test function in vector form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#40: test_that("Correctness of relative MBD (single test function in 1D array form)",
     expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 11. Error: Correctness of relative MBD (single test function in 1D array form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#43: test_that("Correctness of relative MBD (single test function in row-like 2D array form)",
     expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 12. Error: Correctness of relative MBD (single test function in row-like 2D a
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#46: test_that("Correctness of relative MBD (single test function in column-like 2D array form)",
     expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 13. Error: Correctness of relative MBD (single test function in column-like 2
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#49: test_that("Correctness of relative MBD (multiple test function)",
     expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3,
     2/3, 0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 14. Error: Correctness of relative MBD (multiple test function) ------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::MBD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_1, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#104: test_that("Area ordering - case 1", expect_equal(area_ordered(fD_1,
     fD_2), c(TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3c776b8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 15. Error: Area ordering - case 1 ------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     4. roahd::area_ordered(fD_1, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_1)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#108: test_that("Area ordering - case 2", expect_equal(area_ordered(fD_2,
     fD_1), c(FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3c776b8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 16. Error: Area ordering - case 2 ------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     4. roahd::area_ordered(fD_2, fD_1)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_3)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_3), c(FALSE, TRUE, FALSE,
     TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#118: test_that("Area ordering - case 5", expect_equal(area_ordered(fD_2,
     fD_3), c(FALSE, TRUE, FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3c776b8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 17. Error: Area ordering - case 5 ------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_2, fD_3)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_3, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_3, fD_2), c(TRUE, FALSE, TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#122: test_that("Area ordering - case 6", expect_equal(area_ordered(fD_3,
     fD_2), c(TRUE, FALSE, TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3c776b8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 18. Error: Area ordering - case 6 ------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_3, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `+.fData`(fD, array(1, dim = c(1, 10)))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     --- R stacktrace ---
     where 1: `+.fData`(fD, array(1, dim = c(1, 10)))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + array(1, dim = c(1, 10)))$values - matrix(seq(2,
     11), nrow = 21, ncol = 10, byrow = TRUE)), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#132: test_that("Sum of fData and array", expect_equal(sum((fD + array(1,
     dim = c(1, 10)))$values - matrix(seq(2, 11), nrow = 21, ncol = 10,
     byrow = TRUE)), 0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     return(fD)
     }
     <bytecode: 0x23fc6f8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function +.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 19. Error: Sum of fData and array ------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`+.fData`(fD, array(1, dim = c(1, 10)))
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + fD - matrix(2 * seq(1, 10), nrow = 21,
     ncol = 10, byrow = TRUE))$values), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#142: test_that("Sum of two compliant fData objects", expect_equal(sum((fD +
     fD - matrix(2 * seq(1, 10), nrow = 21, ncol = 10, byrow = TRUE))$values),
     0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3c776b8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 20. Error: Sum of two compliant fData objects ------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`-.fData`(...)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(BD_relative(fD_target, fD_reference), BD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#74: test_that("Restyling test on BD ", expect_identical(BD_relative(fD_target,
     fD_reference), BD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x3953718>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 21. Error: Restyling test on BD -------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::BD_relative(Data_target, Data_reference)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(MBD_relative(fD_target, fD_reference), MBD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#77: test_that("Restyling test on MBD ", expect_identical(MBD_relative(fD_target,
     fD_reference), MBD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x397c1c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     -- 22. Error: Restyling test on MBD ------------------------------------------
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::MBD_relative(Data_target, Data_reference)
    
     == testthat results ===========================================================
     [ OK: 130 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 22 ]
     1. Error: Correctness of relative BD (single test function in row matrix form)
     2. Error: Correctness of relative BD (single test function in column matrix form)
     3. Error: Correctness of relative BD (single test function in vector form)
     4. Error: Correctness of relative BD (single test function in 1D array form)
     5. Error: Correctness of relative BD (single test function in row-like 2D array form)
     6. Error: Correctness of relative BD (single test function in column-like 2D array form)
     7. Error: Correctness of relative BD (multiple test function)
     8. Error: Correctness of relative MBD (single test function in row matrix form)
     9. Error: Correctness of relative MBD (single test function in column matrix form)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.4.1
Check: examples
Result: ERROR
    Running examples in ‘roahd-Ex.R’ failed
    The error most likely occurred in:
    
    > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
    > ### Name: BD_relative
    > ### Title: Relative Band Depth of functions in a univariate functional
    > ### dataset
    > ### Aliases: BD_relative BD_relative.fData BD_relative.default
    >
    > ### ** Examples
    >
    >
    > grid = seq( 0, 1, length.out = 1e2 )
    >
    > Data_ref = matrix( c( 0 + sin( 2 * pi * grid ),
    + 1 + sin( 2 * pi * grid ),
    + -1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_1 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = 1, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_2 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = length( grid ), ncol = 1, byrow = TRUE )
    >
    > Data_test_3 = 0.6 + sin( 2 * pi * grid )
    >
    > Data_test_4 = array( 0.6 + sin( 2 * pi * grid ), dim = length( grid ) )
    >
    > Data_test_5 = array( 0.6 + sin( 2 * pi * grid ), dim = c( 1, length( grid ) ) )
    >
    > Data_test_6 = array( 0.6 + sin( 2 * pi * grid ), dim = c( length( grid ), 1 ) )
    >
    > Data_test_7 = matrix( c( 0.5 + sin( 2 * pi * grid ),
    + -0.5 + sin( 2 * pi * grid ),
    + 1.1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > fD_ref = fData( grid, Data_ref )
    > fD_test_1 = fData( grid, Data_test_1 )
    > fD_test_2 = fData( grid, Data_test_2 )
    > fD_test_3 = fData( grid, Data_test_3 )
    > fD_test_4 = fData( grid, Data_test_4 )
    > fD_test_5 = fData( grid, Data_test_5 )
    > fD_test_6 = fData( grid, Data_test_6 )
    > fD_test_7 = fData( grid, Data_test_7 )
    >
    > BD_relative( fD_test_1, fD_ref )
    [1] 0.6666667
    > BD_relative( Data_test_1, Data_ref )
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    roahd
     --- call from context ---
    BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
    if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
    }
     --- R stacktrace ---
    where 1: BD_relative(Data_test_1, Data_ref)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Data_target, Data_reference)
    {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
    }
    <bytecode: 0x55cbe27a09e0>
    <environment: namespace:roahd>
     --- function search by body ---
    Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Data_target) != class(Data_reference)) { :
     the condition has length > 1
    Calls: BD_relative
    Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.4.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [43s/66s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(roahd)
     >
     > test_check("roahd")
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#32: test_that("Correctness of relative BD (single test function in row matrix form)",
     expect_equal(BD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 1. Error: Correctness of relative BD (single test function in row matrix form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#35: test_that("Correctness of relative BD (single test function in column matrix form)",
     expect_equal(BD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 2. Error: Correctness of relative BD (single test function in column matrix f
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#38: test_that("Correctness of relative BD (single test function in vector form)",
     expect_equal(BD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 3. Error: Correctness of relative BD (single test function in vector form) ─
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#41: test_that("Correctness of relative BD (single test function in 1D array form)",
     expect_equal(BD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 4. Error: Correctness of relative BD (single test function in 1D array form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#44: test_that("Correctness of relative BD (single test function in row-like 2D array form)",
     expect_equal(BD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 5. Error: Correctness of relative BD (single test function in row-like 2D arr
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#47: test_that("Correctness of relative BD (single test function in column-like 2D array form)",
     expect_equal(BD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 6. Error: Correctness of relative BD (single test function in column-like 2D
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#50: test_that("Correctness of relative BD (multiple test function)",
     expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 7. Error: Correctness of relative BD (multiple test function) ──────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::BD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#31: test_that("Correctness of relative MBD (single test function in row matrix form)",
     expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 8. Error: Correctness of relative MBD (single test function in row matrix for
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#34: test_that("Correctness of relative MBD (single test function in column matrix form)",
     expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 9. Error: Correctness of relative MBD (single test function in column matrix
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#37: test_that("Correctness of relative MBD (single test function in vector form)",
     expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 10. Error: Correctness of relative MBD (single test function in vector form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#40: test_that("Correctness of relative MBD (single test function in 1D array form)",
     expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 11. Error: Correctness of relative MBD (single test function in 1D array form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#43: test_that("Correctness of relative MBD (single test function in row-like 2D array form)",
     expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 12. Error: Correctness of relative MBD (single test function in row-like 2D a
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#46: test_that("Correctness of relative MBD (single test function in column-like 2D array form)",
     expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 13. Error: Correctness of relative MBD (single test function in column-like 2
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#49: test_that("Correctness of relative MBD (multiple test function)",
     expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3,
     2/3, 0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 14. Error: Correctness of relative MBD (multiple test function) ────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::MBD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_1, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#104: test_that("Area ordering - case 1", expect_equal(area_ordered(fD_1,
     fD_2), c(TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x55e12f10afa0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 15. Error: Area ordering - case 1 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     4. roahd::area_ordered(fD_1, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_1)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#108: test_that("Area ordering - case 2", expect_equal(area_ordered(fD_2,
     fD_1), c(FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x55e12f10afa0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 16. Error: Area ordering - case 2 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     4. roahd::area_ordered(fD_2, fD_1)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_3)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_3), c(FALSE, TRUE, FALSE,
     TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#118: test_that("Area ordering - case 5", expect_equal(area_ordered(fD_2,
     fD_3), c(FALSE, TRUE, FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x55e12f10afa0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 17. Error: Area ordering - case 5 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_2, fD_3)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_3, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_3, fD_2), c(TRUE, FALSE, TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#122: test_that("Area ordering - case 6", expect_equal(area_ordered(fD_3,
     fD_2), c(TRUE, FALSE, TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x55e12f10afa0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 18. Error: Area ordering - case 6 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_3, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `+.fData`(fD, array(1, dim = c(1, 10)))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     --- R stacktrace ---
     where 1: `+.fData`(fD, array(1, dim = c(1, 10)))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + array(1, dim = c(1, 10)))$values - matrix(seq(2,
     11), nrow = 21, ncol = 10, byrow = TRUE)), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#132: test_that("Sum of fData and array", expect_equal(sum((fD + array(1,
     dim = c(1, 10)))$values - matrix(seq(2, 11), nrow = 21, ncol = 10,
     byrow = TRUE)), 0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     return(fD)
     }
     <bytecode: 0x55e12d87aa38>
     <environment: namespace:roahd>
     --- function search by body ---
     Function +.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 19. Error: Sum of fData and array ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`+.fData`(fD, array(1, dim = c(1, 10)))
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + fD - matrix(2 * seq(1, 10), nrow = 21,
     ncol = 10, byrow = TRUE))$values), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#142: test_that("Sum of two compliant fData objects", expect_equal(sum((fD +
     fD - matrix(2 * seq(1, 10), nrow = 21, ncol = 10, byrow = TRUE))$values),
     0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x55e12f10afa0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 20. Error: Sum of two compliant fData objects ──────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`-.fData`(...)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(BD_relative(fD_target, fD_reference), BD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#74: test_that("Restyling test on BD ", expect_identical(BD_relative(fD_target,
     fD_reference), BD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x55e12ede4188>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 21. Error: Restyling test on BD ───────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::BD_relative(Data_target, Data_reference)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(MBD_relative(fD_target, fD_reference), MBD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#77: test_that("Restyling test on MBD ", expect_identical(MBD_relative(fD_target,
     fD_reference), MBD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x55e12ee08c88>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 22. Error: Restyling test on MBD ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::MBD_relative(Data_target, Data_reference)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 130 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 22 ]
     1. Error: Correctness of relative BD (single test function in row matrix form)
     2. Error: Correctness of relative BD (single test function in column matrix form)
     3. Error: Correctness of relative BD (single test function in vector form)
     4. Error: Correctness of relative BD (single test function in 1D array form)
     5. Error: Correctness of relative BD (single test function in row-like 2D array form)
     6. Error: Correctness of relative BD (single test function in column-like 2D array form)
     7. Error: Correctness of relative BD (multiple test function)
     8. Error: Correctness of relative MBD (single test function in row matrix form)
     9. Error: Correctness of relative MBD (single test function in column matrix form)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.4.1
Check: examples
Result: ERROR
    Running examples in ‘roahd-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: BD_relative
    > ### Title: Relative Band Depth of functions in a univariate functional
    > ### dataset
    > ### Aliases: BD_relative BD_relative.fData BD_relative.default
    >
    > ### ** Examples
    >
    >
    > grid = seq( 0, 1, length.out = 1e2 )
    >
    > Data_ref = matrix( c( 0 + sin( 2 * pi * grid ),
    + 1 + sin( 2 * pi * grid ),
    + -1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_1 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = 1, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_2 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = length( grid ), ncol = 1, byrow = TRUE )
    >
    > Data_test_3 = 0.6 + sin( 2 * pi * grid )
    >
    > Data_test_4 = array( 0.6 + sin( 2 * pi * grid ), dim = length( grid ) )
    >
    > Data_test_5 = array( 0.6 + sin( 2 * pi * grid ), dim = c( 1, length( grid ) ) )
    >
    > Data_test_6 = array( 0.6 + sin( 2 * pi * grid ), dim = c( length( grid ), 1 ) )
    >
    > Data_test_7 = matrix( c( 0.5 + sin( 2 * pi * grid ),
    + -0.5 + sin( 2 * pi * grid ),
    + 1.1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > fD_ref = fData( grid, Data_ref )
    > fD_test_1 = fData( grid, Data_test_1 )
    > fD_test_2 = fData( grid, Data_test_2 )
    > fD_test_3 = fData( grid, Data_test_3 )
    > fD_test_4 = fData( grid, Data_test_4 )
    > fD_test_5 = fData( grid, Data_test_5 )
    > fD_test_6 = fData( grid, Data_test_6 )
    > fD_test_7 = fData( grid, Data_test_7 )
    >
    > BD_relative( fD_test_1, fD_ref )
    [1] 0.6666667
    > BD_relative( Data_test_1, Data_ref )
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    roahd
     --- call from context ---
    BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
    if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
    }
     --- R stacktrace ---
    where 1: BD_relative(Data_test_1, Data_ref)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Data_target, Data_reference)
    {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
    }
    <bytecode: 0x252f280>
    <environment: namespace:roahd>
     --- function search by body ---
    Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Data_target) != class(Data_reference)) { :
     the condition has length > 1
    Calls: BD_relative
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.4.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [72s/86s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(roahd)
     >
     > test_check("roahd")
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#32: test_that("Correctness of relative BD (single test function in row matrix form)",
     expect_equal(BD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 1. Error: Correctness of relative BD (single test function in row matrix form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#35: test_that("Correctness of relative BD (single test function in column matrix form)",
     expect_equal(BD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 2. Error: Correctness of relative BD (single test function in column matrix f
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#38: test_that("Correctness of relative BD (single test function in vector form)",
     expect_equal(BD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 3. Error: Correctness of relative BD (single test function in vector form) ─
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#41: test_that("Correctness of relative BD (single test function in 1D array form)",
     expect_equal(BD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 4. Error: Correctness of relative BD (single test function in 1D array form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#44: test_that("Correctness of relative BD (single test function in row-like 2D array form)",
     expect_equal(BD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 5. Error: Correctness of relative BD (single test function in row-like 2D arr
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#47: test_that("Correctness of relative BD (single test function in column-like 2D array form)",
     expect_equal(BD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 6. Error: Correctness of relative BD (single test function in column-like 2D
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#50: test_that("Correctness of relative BD (multiple test function)",
     expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 7. Error: Correctness of relative BD (multiple test function) ──────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::BD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#31: test_that("Correctness of relative MBD (single test function in row matrix form)",
     expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 8. Error: Correctness of relative MBD (single test function in row matrix for
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#34: test_that("Correctness of relative MBD (single test function in column matrix form)",
     expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 9. Error: Correctness of relative MBD (single test function in column matrix
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#37: test_that("Correctness of relative MBD (single test function in vector form)",
     expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 10. Error: Correctness of relative MBD (single test function in vector form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#40: test_that("Correctness of relative MBD (single test function in 1D array form)",
     expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 11. Error: Correctness of relative MBD (single test function in 1D array form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#43: test_that("Correctness of relative MBD (single test function in row-like 2D array form)",
     expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 12. Error: Correctness of relative MBD (single test function in row-like 2D a
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#46: test_that("Correctness of relative MBD (single test function in column-like 2D array form)",
     expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 13. Error: Correctness of relative MBD (single test function in column-like 2
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#49: test_that("Correctness of relative MBD (multiple test function)",
     expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3,
     2/3, 0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 14. Error: Correctness of relative MBD (multiple test function) ────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::MBD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_1, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#104: test_that("Area ordering - case 1", expect_equal(area_ordered(fD_1,
     fD_2), c(TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3878a60>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 15. Error: Area ordering - case 1 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     4. roahd::area_ordered(fD_1, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_1)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#108: test_that("Area ordering - case 2", expect_equal(area_ordered(fD_2,
     fD_1), c(FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3878a60>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 16. Error: Area ordering - case 2 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     4. roahd::area_ordered(fD_2, fD_1)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_3)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_3), c(FALSE, TRUE, FALSE,
     TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#118: test_that("Area ordering - case 5", expect_equal(area_ordered(fD_2,
     fD_3), c(FALSE, TRUE, FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3878a60>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 17. Error: Area ordering - case 5 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_2, fD_3)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_3, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_3, fD_2), c(TRUE, FALSE, TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#122: test_that("Area ordering - case 6", expect_equal(area_ordered(fD_3,
     fD_2), c(TRUE, FALSE, TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3878a60>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 18. Error: Area ordering - case 6 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_3, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `+.fData`(fD, array(1, dim = c(1, 10)))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     --- R stacktrace ---
     where 1: `+.fData`(fD, array(1, dim = c(1, 10)))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + array(1, dim = c(1, 10)))$values - matrix(seq(2,
     11), nrow = 21, ncol = 10, byrow = TRUE)), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#132: test_that("Sum of fData and array", expect_equal(sum((fD + array(1,
     dim = c(1, 10)))$values - matrix(seq(2, 11), nrow = 21, ncol = 10,
     byrow = TRUE)), 0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     return(fD)
     }
     <bytecode: 0x1fa75c0>
     <environment: namespace:roahd>
     --- function search by body ---
     Function +.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 19. Error: Sum of fData and array ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`+.fData`(fD, array(1, dim = c(1, 10)))
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + fD - matrix(2 * seq(1, 10), nrow = 21,
     ncol = 10, byrow = TRUE))$values), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#142: test_that("Sum of two compliant fData objects", expect_equal(sum((fD +
     fD - matrix(2 * seq(1, 10), nrow = 21, ncol = 10, byrow = TRUE))$values),
     0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x3878a60>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 20. Error: Sum of two compliant fData objects ──────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`-.fData`(...)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(BD_relative(fD_target, fD_reference), BD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#74: test_that("Restyling test on BD ", expect_identical(BD_relative(fD_target,
     fD_reference), BD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x353c100>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 21. Error: Restyling test on BD ───────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::BD_relative(Data_target, Data_reference)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(MBD_relative(fD_target, fD_reference), MBD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#77: test_that("Restyling test on MBD ", expect_identical(MBD_relative(fD_target,
     fD_reference), MBD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x3560458>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 22. Error: Restyling test on MBD ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::MBD_relative(Data_target, Data_reference)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 130 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 22 ]
     1. Error: Correctness of relative BD (single test function in row matrix form)
     2. Error: Correctness of relative BD (single test function in column matrix form)
     3. Error: Correctness of relative BD (single test function in vector form)
     4. Error: Correctness of relative BD (single test function in 1D array form)
     5. Error: Correctness of relative BD (single test function in row-like 2D array form)
     6. Error: Correctness of relative BD (single test function in column-like 2D array form)
     7. Error: Correctness of relative BD (multiple test function)
     8. Error: Correctness of relative MBD (single test function in row matrix form)
     9. Error: Correctness of relative MBD (single test function in column matrix form)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.4.1
Check: examples
Result: ERROR
    Running examples in ‘roahd-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: BD_relative
    > ### Title: Relative Band Depth of functions in a univariate functional
    > ### dataset
    > ### Aliases: BD_relative BD_relative.fData BD_relative.default
    >
    > ### ** Examples
    >
    >
    > grid = seq( 0, 1, length.out = 1e2 )
    >
    > Data_ref = matrix( c( 0 + sin( 2 * pi * grid ),
    + 1 + sin( 2 * pi * grid ),
    + -1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_1 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = 1, ncol = length( grid ), byrow = TRUE )
    >
    > Data_test_2 = matrix( c( 0.6 + sin( 2 * pi * grid ) ),
    + nrow = length( grid ), ncol = 1, byrow = TRUE )
    >
    > Data_test_3 = 0.6 + sin( 2 * pi * grid )
    >
    > Data_test_4 = array( 0.6 + sin( 2 * pi * grid ), dim = length( grid ) )
    >
    > Data_test_5 = array( 0.6 + sin( 2 * pi * grid ), dim = c( 1, length( grid ) ) )
    >
    > Data_test_6 = array( 0.6 + sin( 2 * pi * grid ), dim = c( length( grid ), 1 ) )
    >
    > Data_test_7 = matrix( c( 0.5 + sin( 2 * pi * grid ),
    + -0.5 + sin( 2 * pi * grid ),
    + 1.1 + sin( 2 * pi * grid ) ),
    + nrow = 3, ncol = length( grid ), byrow = TRUE )
    >
    > fD_ref = fData( grid, Data_ref )
    > fD_test_1 = fData( grid, Data_test_1 )
    > fD_test_2 = fData( grid, Data_test_2 )
    > fD_test_3 = fData( grid, Data_test_3 )
    > fD_test_4 = fData( grid, Data_test_4 )
    > fD_test_5 = fData( grid, Data_test_5 )
    > fD_test_6 = fData( grid, Data_test_6 )
    > fD_test_7 = fData( grid, Data_test_7 )
    >
    > BD_relative( fD_test_1, fD_ref )
    [1] 0.6666667
    > BD_relative( Data_test_1, Data_ref )
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
    :
     --- package (from environment) ---
    roahd
     --- call from context ---
    BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
    if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
    }
     --- R stacktrace ---
    where 1: BD_relative(Data_test_1, Data_ref)
    
     --- value of length: 2 type: logical ---
    [1] FALSE FALSE
     --- function from context ---
    function (Data_target, Data_reference)
    {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
    }
    <bytecode: 0x2166348>
    <environment: namespace:roahd>
     --- function search by body ---
    Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
    Error in if (class(Data_target) != class(Data_reference)) { :
     the condition has length > 1
    Calls: BD_relative
    Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.4.1
Check: tests
Result: ERROR
     Running ‘testthat.R’ [65s/74s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library(testthat)
     > library(roahd)
     >
     > test_check("roahd")
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#32: test_that("Correctness of relative BD (single test function in row matrix form)",
     expect_equal(BD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 1. Error: Correctness of relative BD (single test function in row matrix form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#35: test_that("Correctness of relative BD (single test function in column matrix form)",
     expect_equal(BD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 2. Error: Correctness of relative BD (single test function in column matrix f
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#38: test_that("Correctness of relative BD (single test function in vector form)",
     expect_equal(BD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 3. Error: Correctness of relative BD (single test function in vector form) ─
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#41: test_that("Correctness of relative BD (single test function in 1D array form)",
     expect_equal(BD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 4. Error: Correctness of relative BD (single test function in 1D array form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#44: test_that("Correctness of relative BD (single test function in row-like 2D array form)",
     expect_equal(BD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 5. Error: Correctness of relative BD (single test function in row-like 2D arr
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#47: test_that("Correctness of relative BD (single test function in column-like 2D array form)",
     expect_equal(BD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 6. Error: Correctness of relative BD (single test function in column-like 2D
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(BD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::BD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_BD_relative.R#50: test_that("Correctness of relative BD (multiple test function)",
     expect_equal(BD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 7. Error: Correctness of relative BD (multiple test function) ──────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::BD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_1, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_1, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#31: test_that("Correctness of relative MBD (single test function in row matrix form)",
     expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 8. Error: Correctness of relative MBD (single test function in row matrix for
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_1, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_1, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_2, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_2, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#34: test_that("Correctness of relative MBD (single test function in column matrix form)",
     expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 9. Error: Correctness of relative MBD (single test function in column matrix
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_2, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_2, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_3, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_3, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#37: test_that("Correctness of relative MBD (single test function in vector form)",
     expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE TRUE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 10. Error: Correctness of relative MBD (single test function in vector form)
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_3, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_3, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_4, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_4, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#40: test_that("Correctness of relative MBD (single test function in 1D array form)",
     expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] TRUE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 11. Error: Correctness of relative MBD (single test function in 1D array form
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_4, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_4, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_5, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_5, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#43: test_that("Correctness of relative MBD (single test function in row-like 2D array form)",
     expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 12. Error: Correctness of relative MBD (single test function in row-like 2D a
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_5, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_5, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_6, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_6, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#46: test_that("Correctness of relative MBD (single test function in column-like 2D array form)",
     expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 13. Error: Correctness of relative MBD (single test function in column-like 2
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(MBD_relative(Data_test_6, Data_ref), 2/3)
     4. roahd::MBD_relative(Data_test_6, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_test_7, Data_ref)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_test_7, Data_ref)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3, 2/3,
     0))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_MBD_relative.R#49: test_that("Correctness of relative MBD (multiple test function)",
     expect_equal(MBD_relative(Data_test_7, Data_ref), c(2/3,
     2/3, 0)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 14. Error: Correctness of relative MBD (multiple test function) ────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::MBD_relative(Data_test_7, Data_ref)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_1, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#104: test_that("Area ordering - case 1", expect_equal(area_ordered(fD_1,
     fD_2), c(TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x4d8f080>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 15. Error: Area ordering - case 1 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_1, fD_2), c(TRUE, FALSE))
     4. roahd::area_ordered(fD_1, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_1)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#108: test_that("Area ordering - case 2", expect_equal(area_ordered(fD_2,
     fD_1), c(FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x4d8f080>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 16. Error: Area ordering - case 2 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(area_ordered(fD_2, fD_1), c(FALSE, TRUE))
     4. roahd::area_ordered(fD_2, fD_1)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(gData, fData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(gData, fData$values)
     where 2: area_under_curve(gData - fData$values)
     where 3: area_ordered(fD_2, fD_3)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_2, fD_3), c(FALSE, TRUE, FALSE,
     TRUE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#118: test_that("Area ordering - case 5", expect_equal(area_ordered(fD_2,
     fD_3), c(FALSE, TRUE, FALSE, TRUE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x4d8f080>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 17. Error: Area ordering - case 5 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_2, fD_3)
     6. roahd:::`-.fData`(gData, fData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fData, gData$values)
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fData, gData$values)
     where 2: area_under_curve(fData - gData$values)
     where 3: area_ordered(fD_3, fD_2)
     where 4: eval_bare(expr, quo_get_env(quo))
     where 5: quasi_label(enquo(object), label, arg = "object")
     where 6: expect_equal(area_ordered(fD_3, fD_2), c(TRUE, FALSE, TRUE, FALSE))
     where 7: eval(code, test_env)
     where 8: eval(code, test_env)
     where 9: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 10: doTryCatch(return(expr), name, parentenv, handler)
     where 11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 13: doTryCatch(return(expr), name, parentenv, handler)
     where 14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 15: tryCatchList(expr, classes, parentenv, handlers)
     where 16: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 17: test_code(desc, code, env = parent.frame())
     where 18 at testthat/test_correlation.R#122: test_that("Area ordering - case 6", expect_equal(area_ordered(fD_3,
     fD_2), c(TRUE, FALSE, TRUE, FALSE)))
     where 19: eval(code, test_env)
     where 20: eval(code, test_env)
     where 21: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 22: doTryCatch(return(expr), name, parentenv, handler)
     where 23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 25: doTryCatch(return(expr), name, parentenv, handler)
     where 26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 27: tryCatchList(expr, classes, parentenv, handlers)
     where 28: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 29: test_code(NULL, exprs, env)
     where 30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 31: force(code)
     where 32: doWithOneRestart(return(expr), restart)
     where 33: withOneRestart(expr, restarts[[1L]])
     where 34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 35: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 36: FUN(X[[i]], ...)
     where 37: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 38: force(code)
     where 39: doWithOneRestart(return(expr), restart)
     where 40: withOneRestart(expr, restarts[[1L]])
     where 41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 42: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 45: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 46: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x4d8f080>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 18. Error: Area ordering - case 6 ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd::area_ordered(fD_3, fD_2)
     6. roahd:::`-.fData`(fData, gData$values)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `+.fData`(fD, array(1, dim = c(1, 10)))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     --- R stacktrace ---
     where 1: `+.fData`(fD, array(1, dim = c(1, 10)))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + array(1, dim = c(1, 10)))$values - matrix(seq(2,
     11), nrow = 21, ncol = 10, byrow = TRUE)), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#132: test_that("Sum of fData and array", expect_equal(sum((fD + array(1,
     dim = c(1, 10)))$values - matrix(seq(2, 11), nrow = 21, ncol = 10,
     byrow = TRUE)), 0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in +.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) + as.vector(A$values))
     }
     else {
     fD$values = fD$values + A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) + as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in +.fData: mismatching arguments")
     }
     fD$values = fD$values + A
     }
     return(fD)
     }
     <bytecode: 0x36342b8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function +.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 19. Error: Sum of fData and array ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`+.fData`(fD, array(1, dim = c(1, 10)))
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     --- call from argument ---
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h || fD$P !=
     A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     } else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     } else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     --- R stacktrace ---
     where 1: `-.fData`(fD + fD, matrix(2 * seq(1, 10), nrow = 21, ncol = 10,
     byrow = TRUE))
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(object), label, arg = "object")
     where 4: expect_equal(sum((fD + fD - matrix(2 * seq(1, 10), nrow = 21,
     ncol = 10, byrow = TRUE))$values), 0)
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_fData.R#142: test_that("Sum of two compliant fData objects", expect_equal(sum((fD +
     fD - matrix(2 * seq(1, 10), nrow = 21, ncol = 10, byrow = TRUE))$values),
     0))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (fD, A)
     {
     if (class(A) == "fData") {
     if (fD$t0 != A$t0 || fD$tP != A$tP || fD$h != A$h ||
     fD$P != A$P) {
     stop("Error in -.fData: functional data defined over\n mismatching intervals")
     }
     if (A$N == 1) {
     fD$values = t(t(fD$values) - as.vector(A$values))
     }
     else {
     fD$values = fD$values - A$values
     }
     }
     else if (is.null(dim(A)) || nrow(A) == 1) {
     A = as.vector(A)
     if (length(A) != fD$P) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = t(t(fD$values) - as.vector(rep(A, fD$P/length(A))))
     }
     else if (is.matrix(A)) {
     if (ncol(A) != fD$P || nrow(A) != fD$N) {
     stop("Error in -.fData: mismatching arguments")
     }
     fD$values = fD$values - A
     }
     return(fD)
     }
     <bytecode: 0x4d8f080>
     <environment: namespace:roahd>
     --- function search by body ---
     Function -.fData in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 20. Error: Sum of two compliant fData objects ──────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_equal(...)
     4. roahd:::`-.fData`(...)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     BD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: BD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(BD_relative(fD_target, fD_reference), BD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#74: test_that("Restyling test on BD ", expect_identical(BD_relative(fD_target,
     fD_reference), BD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in BD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("BD_relative", Data_target)
     }
     <bytecode: 0x4af6488>
     <environment: namespace:roahd>
     --- function search by body ---
     Function BD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 21. Error: Restyling test on BD ───────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::BD_relative(Data_target, Data_reference)
    
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     roahd
     --- call from context ---
     MBD_relative(Data_target, Data_reference)
     --- call from argument ---
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array", "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     --- R stacktrace ---
     where 1: MBD_relative(Data_target, Data_reference)
     where 2: eval_bare(expr, quo_get_env(quo))
     where 3: quasi_label(enquo(expected), expected.label, arg = "expected")
     where 4: expect_identical(MBD_relative(fD_target, fD_reference), MBD_relative(Data_target,
     Data_reference))
     where 5: eval(code, test_env)
     where 6: eval(code, test_env)
     where 7: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 8: doTryCatch(return(expr), name, parentenv, handler)
     where 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 11: doTryCatch(return(expr), name, parentenv, handler)
     where 12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 13: tryCatchList(expr, classes, parentenv, handlers)
     where 14: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 15: test_code(desc, code, env = parent.frame())
     where 16 at testthat/test_restyling.R#77: test_that("Restyling test on MBD ", expect_identical(MBD_relative(fD_target,
     fD_reference), MBD_relative(Data_target, Data_reference)))
     where 17: eval(code, test_env)
     where 18: eval(code, test_env)
     where 19: withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error)
     where 20: doTryCatch(return(expr), name, parentenv, handler)
     where 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
     where 22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
     where 23: doTryCatch(return(expr), name, parentenv, handler)
     where 24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),
     names[nh], parentenv, handlers[[nh]])
     where 25: tryCatchList(expr, classes, parentenv, handlers)
     where 26: tryCatch(withCallingHandlers({
     eval(code, test_env)
     if (!handled && !is.null(test)) {
     skip_empty()
     }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,
     message = handle_message, error = handle_error), error = handle_fatal,
     skip = function(e) {
     })
     where 27: test_code(NULL, exprs, env)
     where 28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
     where 29: force(code)
     where 30: doWithOneRestart(return(expr), restart)
     where 31: withOneRestart(expr, restarts[[1L]])
     where 32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,
     {
     reporter$start_file(basename(path))
     lister$start_file(basename(path))
     source_file(path, new.env(parent = env), chdir = TRUE,
     wrap = wrap)
     reporter$.end_context()
     reporter$end_file()
     })
     where 34: FUN(X[[i]], ...)
     where 35: lapply(paths, test_file, env = env, reporter = current_reporter,
     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
     where 36: force(code)
     where 37: doWithOneRestart(return(expr), restart)
     where 38: withOneRestart(expr, restarts[[1L]])
     where 39: withRestarts(testthat_abort_reporter = function() NULL, force(code))
     where 40: with_reporter(reporter = current_reporter, results <- lapply(paths,
     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,
     load_helpers = FALSE, wrap = wrap))
     where 41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 42: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,
     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
     wrap = wrap)
     where 43: test_package_dir(package = package, test_path = test_path, filter = filter,
     reporter = reporter, ..., stop_on_failure = stop_on_failure,
     stop_on_warning = stop_on_warning, wrap = wrap)
     where 44: test_check("roahd")
    
     --- value of length: 2 type: logical ---
     [1] FALSE FALSE
     --- function from context ---
     function (Data_target, Data_reference)
     {
     if (class(Data_target) != class(Data_reference)) {
     if (!(class(Data_target) %in% c("numeric", "array", "matrix") &
     class(Data_reference) %in% c("numeric", "array",
     "matrix"))) {
     stop("Error in MBD_relative: you have to provide target and reference data\n with the same class")
     }
     }
     UseMethod("MBD_relative", Data_target)
     }
     <bytecode: 0x4b1eaf8>
     <environment: namespace:roahd>
     --- function search by body ---
     Function MBD_relative in namespace roahd has this body.
     ----------- END OF FAILURE REPORT --------------
     ── 22. Error: Restyling test on MBD ──────────────────────────────────────────
     the condition has length > 1
     Backtrace:
     1. testthat::expect_identical(...)
     4. roahd::MBD_relative(Data_target, Data_reference)
    
     ══ testthat results ═══════════════════════════════════════════════════════════
     [ OK: 130 | SKIPPED: 2 | WARNINGS: 0 | FAILED: 22 ]
     1. Error: Correctness of relative BD (single test function in row matrix form)
     2. Error: Correctness of relative BD (single test function in column matrix form)
     3. Error: Correctness of relative BD (single test function in vector form)
     4. Error: Correctness of relative BD (single test function in 1D array form)
     5. Error: Correctness of relative BD (single test function in row-like 2D array form)
     6. Error: Correctness of relative BD (single test function in column-like 2D array form)
     7. Error: Correctness of relative BD (multiple test function)
     8. Error: Correctness of relative MBD (single test function in row matrix form)
     9. Error: Correctness of relative MBD (single test function in column matrix form)
     1. ...
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 1.4.1
Check: installed package size
Result: NOTE
     installed size is 5.1Mb
     sub-directories of 1Mb or more:
     data 2.9Mb
     doc 1.7Mb
Flavor: r-patched-solaris-x86