Running ‘testthat.R’ [7s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rvinecopulib)
  > 
  > test_check("rvinecopulib")
  
   *** caught segfault ***
  address fc6a8e2a, cause 'memory not mapped'
  
  Traceback:
   1: vinecop_select_cpp(data = data, matrix = matrix, family_set = family_set,     par_method = par_method, nonpar_method = nonpar_method, mult = mult,     selection_criterion = selcrit, psi0 = psi0, preselect_families = presel,     truncation_level = ifelse(is.finite(trunc_lvl), trunc_lvl,         .Machine$integer.max), tree_criterion = tree_crit, threshold = threshold,     select_truncation_level = is.na(trunc_lvl), select_threshold = is.na(threshold),     show_trace = show_trace, num_threads = cores)
   2: vinecop(u, cores = 2)
   3: eval_bare(get_expr(quo), get_env(quo))
   4: withVisible(code)
   5: withCallingHandlers(withVisible(code), warning = handle_warning,     message = handle_message)
   6: force(code)
   7: withr::with_output_sink(temp, withCallingHandlers(withVisible(code),     warning = handle_warning, message = handle_message))
   8: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
   9: quasi_capture(enquo(object), evaluate_promise)
  10: expect_silent(fit <- vinecop(u, cores = 2))
  11: eval(code, test_env)
  12: eval(code, test_env)
  13: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  16: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  17: doTryCatch(return(expr), name, parentenv, handler)
  18: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  19: tryCatchList(expr, classes, parentenv, handlers)
  20: 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) {    })
  21: test_code(desc, code, env = parent.frame())
  22: test_that("runs in parallel", {    expect_silent(fit <- vinecop(u, cores = 2))})
  23: eval(code, test_env)
  24: eval(code, test_env)
  25: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  28: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: 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) {    })
  33: test_code(NULL, exprs, env)
  34: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  35: force(code)
  36: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  37: FUN(X[[i]], ...)
  38: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  39: force(code)
  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))
  41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  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)
  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)
  44: test_check("rvinecopulib")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address fc6a8e2a, cause 'memory not mapped'
  
  Traceback:
   1: vinecop_select_cpp(data = data, matrix = matrix, family_set = family_set,     par_method = par_method, nonpar_method = nonpar_method, mult = mult,     selection_criterion = selcrit, psi0 = psi0, preselect_families = presel,     truncation_level = ifelse(is.finite(trunc_lvl), trunc_lvl,         .Machine$integer.max), tree_criterion = tree_crit, threshold = threshold,     select_truncation_level = is.na(trunc_lvl), select_threshold = is.na(threshold),     show_trace = show_trace, num_threads = cores)
   2: vinecop(u, cores = 2)
   3: eval_bare(get_expr(quo), get_env(quo))
   4: withVisible(code)
   5: withCallingHandlers(withVisible(code), warning = handle_warning,     message = handle_message)
   6: force(code)
   7: withr::with_output_sink(temp, withCallingHandlers(withVisible(code),     warning = handle_warning, message = handle_message))
   8: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
   9: quasi_capture(enquo(object), evaluate_promise)
  10: expect_silent(fit <- vinecop(u, cores = 2))
  11: eval(code, test_env)
  12: eval(code, test_env)
  13: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  16: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  17: doTryCatch(return(expr), name, parentenv, handler)
  18: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  19: tryCatchList(expr, classes, parentenv, handlers)
  20: 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) {    })
  21: test_code(desc, code, env = parent.frame())
  22: test_that("runs in parallel", {    expect_silent(fit <- vinecop(u, cores = 2))})
  23: eval(code, test_env)
  24: eval(code, test_env)
  25: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  28: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: 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) {    })
  33: test_code(NULL, exprs, env)
  34: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  35: force(code)
  36: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  37: FUN(X[[i]], ...)
  38: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  39: force(code)
  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))
  41: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  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)
  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)
  44: test_check("rvinecopulib")
  An irrecoverable exception occurred. R is aborting now ...