Running ‘testthat.R’ [14s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dexter)
  Loading required package: RSQLite
  > 
  > test_check("dexter")
  ==
  ==
  ==
  ==
  
  rules_changed: 1
  rules_added: 0 
  ==
  ==
  ================================================================================
  
   *** caught segfault ***
  address 0x6a63, cause 'memory not mapped'
  
  Traceback:
   1: .$maxTotScore
   2: eval_tidy(xs[[i]], unique_output)
   3: lst_quos(xs, expand = TRUE)
   4: as_tibble(lst_quos(xs, expand = TRUE))
   5: tibble(sumScore = 0:.$maxTotScore)
   6: overscope_eval_next(overscope, args[[j]])
   7: do.grouped_df(., tibble(sumScore = 0:.$maxTotScore))
   8: do(., tibble(sumScore = 0:.$maxTotScore))
   9: function_list[[k]](value)
  10: withVisible(function_list[[k]](value))
  11: freduce(value, `_function_list`)
  12: `_fseq`(`_lhs`)
  13: eval(quote(`_fseq`(`_lhs`)), env, env)
  14: eval(quote(`_fseq`(`_lhs`)), env, env)
  15: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  16: maxScores %>% group_by(.data$booklet_id) %>% do(tibble(sumScore = 0:.$maxTotScore))
  17: fit_enorm_(dataSrc, qtpredicate = qtpredicate, fixed_params = fixed_params,     method = method, nIterations = nIterations, env = caller_env())
  18: fit_enorm(db, item_score == 1)
  19: eval_bare(get_expr(quo), get_env(quo))
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, classes, parentenv, handlers)
  23: tryCatch({    code    NULL}, error = function(e) e)
  24: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  25: quasi_capture(enquo(object), capture_error, label = label)
  26: expect_error(fit_enorm(db, item_score == 1), regexp = "score.+variation")
  27: eval(code, test_env)
  28: eval(code, test_env)
  29: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  30: doTryCatch(return(expr), name, parentenv, handler)
  31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  32: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  33: doTryCatch(return(expr), name, parentenv, handler)
  34: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  35: tryCatchList(expr, classes, parentenv, handlers)
  36: 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) {    })
  37: test_code(desc, code, env = parent.frame())
  38: test_that("calibration of verbal aggression dataset matches oplm results, with fixed and unfixed",     {        db = open_project("../verbAggression.db")        ff = fit_enorm(db)        expect_lt(mean((coef(ff) %>% mutate(item_id = substr(item_id,             1, 8)) %>% inner_join(read_oplm_par("../verbal_oplm/VERBAL.PAR"),             by = c("item_id", "item_score")) %>% mutate(difference = abs(beta.x -             beta.y)))$difference), 1e-15)        oplm_params = read_oplm_par("../verbal_oplm/VERBAL_FX.PAR") %>%             inner_join(read_oplm_par("../verbal_oplm/VERBAL_FX.CML"),                 by = c("item_id", "item_score")) %>% mutate(is_fixed = is.na(se.b)) %>%             select(oplm_lab = item_id, item_score, beta = beta.x,                 se.b, is_fixed)        oplm_params[is.na(oplm_params$se.b), "se.b"] = 0        items = get_items(db) %>% mutate(oplm_lab = substr(item_id,             1, 8))        oplm_params = oplm_params %>% inner_join(items, by = "oplm_lab")        fx = fit_enorm(db, fixed_params = oplm_params %>% filter(is_fixed))        expect_lt(mean((coef(fx) %>% inner_join(oplm_params,             by = c("item_id", "item_score")) %>% mutate(difference = abs(beta.x -             beta.y)))$difference), 1e-15)        expect_lt(mean((coef(fx) %>% inner_join(oplm_params,             by = c("item_id", "item_score")) %>% mutate(difference = abs(SE_b -             se.b)))$difference), 0.001)        fx = fit_enorm(db, fixed_params = oplm_params %>% filter(is_fixed),             method = "Bayes")        expect_output(expect_error(fit_enorm(db, fixed_params = oplm_params %>%             filter(is_fixed & !(item_id == "S1DoShout" & item_score ==                 1))), regexp = "missing.+categories.+fixed"),             regexp = "S1DoShout")        expect_error(fit_enorm(db, item_score == 1), regexp = "score.+variation")        expect_no_error(fit_enorm(db, item_score <= 1))        dbDisconnect(db)    })
  39: eval(code, test_env)
  40: eval(code, test_env)
  41: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  42: doTryCatch(return(expr), name, parentenv, handler)
  43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  44: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  45: doTryCatch(return(expr), name, parentenv, handler)
  46: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  47: tryCatchList(expr, classes, parentenv, handlers)
  48: 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) {    })
  49: test_code(NULL, exprs, env)
  50: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  51: force(code)
  52: 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()    })
  53: FUN(X[[i]], ...)
  54: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  55: force(code)
  56: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  57: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  58: 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)
  59: 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)
  60: test_check("dexter")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault