Running ‘testthat.R’ [10s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(textTinyR)
  Loading required package: Matrix
  > 
  > test_check("textTinyR")
  test-TEXT_DOC_DISSIM.R : test id 1 
  test-TEXT_DOC_DISSIM.R : test id 2 
  test-TEXT_DOC_DISSIM.R : test id 3 
  test-TEXT_DOC_DISSIM.R : test id 4 
  test-TEXT_DOC_DISSIM.R : test id 5 
  test-TEXT_DOC_DISSIM.R : test id 6 
  test-TEXT_DOC_DISSIM.R : test id 7 
  test-TEXT_DOC_DISSIM.R : test id 8 
  test-TEXT_DOC_DISSIM.R : test id 9 
  test-TEXT_DOC_DISSIM.R : test id 10 
  test-TEXT_DOC_DISSIM.R : test id 11 
  test-TEXT_DOC_DISSIM.R : test id 12 
  test-big_tokenize_transform.R : test id 13 
  test-big_tokenize_transform.R : test id 14 
  test-big_tokenize_transform.R : test id 15 
  test-big_tokenize_transform.R : test id 16 
  test-big_tokenize_transform.R : test id 17 
  test-big_tokenize_transform.R : test id 18 
  test-big_tokenize_transform.R : test id 19 
  test-big_tokenize_transform.R : test id 20 
  test-big_tokenize_transform.R : test id 21 
  test-big_tokenize_transform.R : test id 22 
  test-big_tokenize_transform.R : test id 23 
  test-big_tokenize_transform.R : test id 24 
  test-big_tokenize_transform.R : test id 25 
  test-big_tokenize_transform.R : test id 26 
  test-big_tokenize_transform.R : test id 27 
  test-big_tokenize_transform.R : test id 28 
  test-big_tokenize_transform.R : test id 29 
  test-big_tokenize_transform.R : test id 30 
  test-big_tokenize_transform.R : test id 31 
  test-big_tokenize_transform.R : test id 32 
  test-big_tokenize_transform.R : test id 33 
  test-big_tokenize_transform.R : test id 34 
  test-big_tokenize_transform.R : test id 35 
  test-big_tokenize_transform.R : test id 36 
  test-big_tokenize_transform.R : test id 37 
  test-big_tokenize_transform.R : test id 38 
  test-big_tokenize_transform.R : test id 39 
  test-big_tokenize_transform.R : test id 40 
  test-big_tokenize_transform.R : test id 41 
  test-big_tokenize_transform.R : test id 42 
  test-big_tokenize_transform.R : test id 43 
  test-big_tokenize_transform.R : test id 44 
  test-big_tokenize_transform.R : test id 45 
  test-big_tokenize_transform.R : test id 46 
  test-big_tokenize_transform.R : test id 47 
  test-big_tokenize_transform.R : test id 48 
  test-big_tokenize_transform.R : test id 49 
  test-big_tokenize_transform.R : test id 50 
  test-big_tokenize_transform.R : test id 51 
  test-big_tokenize_transform.R : test id 52 
  test-big_tokenize_transform.R : test id 53 
  test-big_tokenize_transform.R : test id 54 
  test-big_tokenize_transform.R : test id 55 
  test-big_tokenize_transform.R : test id 56 
  test-big_tokenize_transform.R : test id 57 
  test-big_tokenize_transform.R : test id 58 
  test-big_tokenize_transform.R : test id 59 
  test-big_tokenize_transform.R : test id 60 
  test-big_tokenize_transform.R : test id 61 
  test-big_tokenize_transform.R : test id 62 
  test-big_tokenize_transform.R : test id 63 
  test-big_tokenize_transform.R : test id 64 
  test-big_tokenize_transform.R : test id 65 
  test-big_tokenize_transform.R : test id 66 
  test-big_tokenize_transform.R : test id 67 
  test-big_tokenize_transform.R : test id 68 
  test-big_tokenize_transform.R : test id 69 
  test-big_tokenize_transform.R : test id 70 
  test-big_tokenize_transform.R : test id 71 
  test-big_tokenize_transform.R : test id 72 
  test-big_tokenize_transform.R : test id 73 
  test-big_tokenize_transform.R : test id 74 
  test-big_tokenize_transform.R : test id 75 
  test-big_tokenize_transform.R : test id 76 
  test-big_tokenize_transform.R : test id 77 
  test-big_tokenize_transform.R : test id 78 
  test-big_tokenize_transform.R : test id 79 
  test-big_tokenize_transform.R : test id 80 
  test-big_tokenize_transform.R : test id 81 
  test-big_tokenize_transform.R : test id 82 
  test-big_tokenize_transform.R : test id 83 
  test-big_tokenize_transform.R : test id 84 
  test-big_tokenize_transform.R : test id 85 
  test-big_tokenize_transform.R : test id 86 
  
  test-big_tokenize_transform.R : test id 87 
  test-cluster_frequency.R : test id 88 
  test-cluster_frequency.R : test id 89 
  test-cosine.R : test id 90 
  test-cosine.R : test id 91 
  test-cosine.R : test id 92 
  test-cosine.R : test id 93 
  test-cosine.R : test id 94 
  test-cosine.R : test id 95 
  test-count_rows.R : test id 96 
  test-count_rows.R : test id 97 
  test-count_rows.R : test id 98 
  test-dims.R : test id 99 
  test-dims.R : test id 100 
  test-dims.R : test id 101 
  test-doc2vec.R : test id 102 
  test-doc2vec.R : test id 103 
  test-doc2vec.R : test id 104 
  test-doc2vec.R : test id 105 
  test-doc2vec.R : test id 106 
  test-doc2vec.R : test id 107 
  test-doc2vec.R : test id 108 
  test-doc2vec.R : test id 109 
  test-doc2vec.R : test id 110 
  test-doc2vec.R : test id 111 
  test-doc2vec.R : test id 112 
  
   *** caught segfault ***
  address 28, cause 'memory not mapped'
  
  Traceback:
   1: word_vectors_methods(private$pre_proc, self$token_list, self$word_vector_FILE,     method, private$unq_tok, private$inp_wv_dims, gtw_terms,     gtw_weights, self$print_every_rows, self$verbose, threads,     self$copy_data)
   2: INIT$doc2vec_methods(method = "sum_sqrt")
   3: eval(code, test_env)
   4: eval(code, test_env)
   5: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: 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) {    })
  13: test_code(desc, code, env = parent.frame(), reporter = reporter)
  14: testthat::test_that("in case that the method parameter is 'sum_sqrt', it returns the correct output [ copy_data = TRUE ]",     {        INIT = Doc2Vec$new(token_list = tok_text, word_vector_FILE = PATH,             copy_data = T)        res = INIT$doc2vec_methods(method = "sum_sqrt")        cat("test-doc2vec.R : test id", cnt_tsts, "\n")        cnt_tsts <<- cnt_tsts + 1        testthat::expect_true(is.matrix(res) && nrow(res) ==             length(tok_text))    })
  15: eval(code, test_env)
  16: eval(code, test_env)
  17: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  18: doTryCatch(return(expr), name, parentenv, handler)
  19: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  20: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  23: tryCatchList(expr, classes, parentenv, handlers)
  24: 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) {    })
  25: test_code(NULL, exprs, env)
  26: source_file(path, child_env(env), wrap = wrap)
  27: FUN(X[[i]], ...)
  28: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  33: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  34: test_files(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)
  35: 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)
  36: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  37: test_check("textTinyR")
  An irrecoverable exception occurred. R is aborting now ...