Running ‘testthat.R’ [125s/197s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > 
  > library("testthat")
  > library("sentopics")
  > 
  > if (Sys.getenv("R_COVR") != "true") {
  +   test_check("sentopics")
  + } else {
  +   test_check("sentopics", reporter = default_reporter())
  +   # test_check("sentopics", reporter = LocationReporter)
  + }
  
   *** caught segfault ***
  address 0x100000030, cause 'memory not mapped'
  Warning: stack imbalance in '[', 85 then 99
  Warning: stack imbalance in '<-', 83 then 96
  Warning: stack imbalance in 'names', 185 then 188
  Warning: stack imbalance in '!', 179 then 180
  Warning: stack imbalance in '*', 179 then 178
  Warning: stack imbalance in 'names', 134 then 135
  
  Traceback:
   1: qatd_cpp_tokens_recompile(x, type, gap, dup)
   2: tokens_recompile(result)
   3: `[.tokens`(ECB_press_conferences_tokens, 1:50)
   4: ECB_press_conferences_tokens[1:50]
   5: eval(code, test_env)
   6: eval(code, test_env)
   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)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  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) {    })
  15: test_code(desc, code, env = parent.frame(), default_reporter = local_interactive_reporter())
  16: test_that("mergeTopics works", {    toks <- ECB_press_conferences_tokens[1:50]    model <- LDA(toks)    merged <- mergeTopics(model, as.list(1:5))    sentopics_labels(merged)    sentopics_labels(merged) <- NULL    expect_identical(merged, model)    model <- grow(model, 2, displayProgress = FALSE)    merged <- mergeTopics(model, as.list(1:5))    sentopics_labels(merged)    sentopics_labels(merged) <- NULL    expect_identical(merged, model)    merged <- mergeTopics(model, list(1:4, 5))    topWords(merged)    plot(merged)    sentiment_series(model, period = "day")    sentiment_breakdown(merged, period = "day")    sentiment_topics(merged, period = "day")    proportion_topics(merged, period = "day")    toks <- ECB_press_conferences_tokens[1:50]    model <- rJST(toks, lexicon = LoughranMcDonald)    merged <- mergeTopics(model, as.list(1:5))    sentopics_labels(merged)    sentopics_labels(merged) <- NULL    expect_identical(merged, model)    model <- grow(model, 2, displayProgress = FALSE)    merged <- mergeTopics(model, as.list(1:5))    sentopics_labels(merged)    sentopics_labels(merged) <- NULL    expect_identical(merged, model)    sentopics_sentiment(model) <- NULL    sentopics_sentiment(model, override = TRUE)    merged <- mergeTopics(model, list(1:4, 5))    sentopics_sentiment(model)    topWords(merged)    plot(merged)    sentiment_series(merged, period = "day")    sentiment_breakdown(merged, period = "day")    sentiment_topics(merged, period = "day")    proportion_topics(merged, period = "day")})
  17: eval(code, test_env)
  18: eval(code, test_env)
  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)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  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) {    })
  27: test_code(test = NULL, code = exprs, env = env, default_reporter = StopReporter$new())
  28: source_file(path, env(env), wrap = wrap)
  29: FUN(X[[i]], ...)
  30: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  31: doTryCatch(return(expr), name, parentenv, handler)
  32: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  33: tryCatchList(expr, classes, parentenv, handlers)
  34: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  35: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  36: test_files_serial(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package)
  37: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package, parallel = parallel)
  38: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  39: test_check("sentopics")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault