Running ‘testthat.R’ [3s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(vinereg)
  > 
  > test_check("vinereg")
  
   *** caught segfault ***
  address fc485520, cause 'memory not mapped'
  
  Traceback:
   1: bicop_select_cpp(data = data, family_set = family_set, par_method = par_method,     nonpar_method = nonpar_method, mult = mult, selcrit = selcrit,     weights = weights, psi0 = psi0, presel = presel, num_threads = cores)
   2: (function (data, family_set = "all", par_method = "mle", nonpar_method = "quadratic",     mult = 1, selcrit = "bic", weights = numeric(), psi0 = 0.9,     presel = TRUE, keep_data = FALSE, cores = 1) {    assert_that(is.character(family_set), is.string(par_method),         is.string(nonpar_method), is.number(mult), mult > 0,         is.string(selcrit), is.numeric(weights), is.number(psi0),         psi0 > 0, psi0 < 1, is.flag(presel), is.flag(keep_data),         is.number(cores), cores > 0)    stopifnot(ncol(data) == 2)    family_set <- process_family_set(family_set)    data <- if_vec_to_matrix(data)    bicop <- bicop_select_cpp(data = data, family_set = family_set,         par_method = par_method, nonpar_method = nonpar_method,         mult = mult, selcrit = selcrit, weights = weights, psi0 = psi0,         presel = presel, num_threads = cores)    bicop$names <- colnames(data)    if (keep_data) {        bicop$data <- data    }    bicop$controls <- list(family_set = family_set, par_method = par_method,         nonpar_method = nonpar_method, mult = mult, selcrit = selcrit,         weights = weights, psi0 = psi0, presel = presel)    bicop$nobs <- nrow(data)    as.bicop(bicop)})(data = c(0.132405447831898, 0.893698988651825, 0.700038459359423, 0.53054713211392, 0.632647842339285, 0.875242600685196, 0.190331700067375, 0.473805201200457, 0.0147988078780441, 0.957077128326186, 0.259683413916793, 0.169045741125885, 0.789632157395672, 0.42072813382869, 0.0936735562888521, 0.653787954234981, 0.33417456151768, 0.672351035424927, 0.182173362236648, 0.964492838469144, 0.673675530698654, 0.891588950858848, 0.702065213840066, 0.145143998531457, 0.716037835986714, 0.265142085573042, 0.592813683363486, 0.953939633432828, 0.602329570377684, 0.948328878103864, 0.398897552024367, 0.0167659643148093, 0.923994866677808, 0.41677772011867, 0.175465304008982, 0.0801624898688582, 0.625194038747235, 0.273197718797744, 0.515136849486984, 0.167140543532756), family_set = "parametric", selcrit = "loglik",     mult = 0.904966147144696)
   3: do.call(bicop, args)
   4: xtnd_vine(u[, var], current_fit, family_set, selcrit, ...)
   5: vinereg(y ~ ., dat, order = paste0("x.", 1:2))
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: 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) {    })
  16: test_code(NULL, exprs, env)
  17: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  18: force(code)
  19: 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()    })
  20: FUN(X[[i]], ...)
  21: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  22: force(code)
  23: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  24: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  25: 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)
  26: 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)
  27: test_check("vinereg")
  An irrecoverable exception occurred. R is aborting now ...