Running ‘testthat.R’ [114s/182s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(text2vec)
  > library(mlapi)
  > data("movie_review")
  > test_check("text2vec")
  INFO  [02:27:14.377] early stopping at 130 iteration 
  INFO  [02:27:15.210] early stopping at 40 iteration 
  INFO  [02:29:49.775] epoch 1, loss 0.1636 
  INFO  [02:29:49.889] epoch 2, loss 0.0877 
  INFO  [02:29:50.007] epoch 3, loss 0.0681 
  INFO  [02:29:50.106] epoch 4, loss 0.0574 
  INFO  [02:29:50.225] epoch 5, loss 0.0499 
  INFO  [02:29:56.375] soft_als: iter 001, frobenious norm change 350.850 loss NA  
  INFO  [02:29:56.381] soft_als: iter 002, frobenious norm change 0.290 loss NA  
  INFO  [02:29:56.387] soft_als: iter 003, frobenious norm change 0.042 loss NA  
  INFO  [02:29:56.393] soft_als: iter 004, frobenious norm change 0.013 loss NA  
  INFO  [02:29:56.398] soft_als: iter 005, frobenious norm change 0.006 loss NA  
  INFO  [02:29:56.421] soft_als: iter 006, frobenious norm change 0.003 loss NA  
  INFO  [02:29:56.427] soft_als: iter 007, frobenious norm change 0.002 loss NA  
  INFO  [02:29:56.433] soft_als: iter 008, frobenious norm change 0.001 loss NA  
  INFO  [02:29:56.455] soft_als: iter 009, frobenious norm change 0.001 loss NA  
  INFO  [02:29:56.456] soft_impute: converged with tol 0.001000 after 9 iter 
  INFO  [02:29:56.615] soft_als: iter 001, frobenious norm change 144.826 loss NA  
  INFO  [02:29:56.764] soft_als: iter 002, frobenious norm change 0.002 loss NA  
  INFO  [02:29:57.011] soft_als: iter 003, frobenious norm change 0.000 loss NA  
  INFO  [02:29:57.013] soft_impute: converged with tol 0.001000 after 3 iter 
  INFO  [02:29:57.111] soft_als: iter 001, frobenious norm change 144.910 loss NA  
  INFO  [02:29:57.237] soft_als: iter 002, frobenious norm change 0.002 loss NA  
  INFO  [02:29:57.363] soft_als: iter 003, frobenious norm change 0.000 loss NA  
  INFO  [02:29:57.365] soft_impute: converged with tol 0.001000 after 3 iter 
  INFO  [02:29:57.589] soft_als: iter 001, frobenious norm change 504.432 loss NA  
  INFO  [02:29:57.594] soft_als: iter 002, frobenious norm change 0.345 loss NA  
  INFO  [02:29:57.598] soft_als: iter 003, frobenious norm change 0.056 loss NA  
  INFO  [02:29:57.603] soft_als: iter 004, frobenious norm change 0.020 loss NA  
  INFO  [02:29:57.607] soft_als: iter 005, frobenious norm change 0.009 loss NA  
  INFO  [02:29:57.611] soft_als: iter 006, frobenious norm change 0.005 loss NA  
  INFO  [02:29:57.616] soft_als: iter 007, frobenious norm change 0.003 loss NA  
  INFO  [02:29:57.620] soft_als: iter 008, frobenious norm change 0.002 loss NA  
  INFO  [02:29:57.624] soft_als: iter 009, frobenious norm change 0.001 loss NA  
  INFO  [02:29:57.628] soft_als: iter 010, frobenious norm change 0.001 loss NA  
  INFO  [02:29:57.630] soft_impute: converged with tol 0.001000 after 10 iter 
  [ FAIL 17 | WARN 30 | SKIP 0 | PASS 148 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-distances.R:29:3): cosine ─────────────────────────────────────
  cos_dist[1, 2] not equal to 0.406.
  1/1 mismatches
  [1] 0.417 - 0.406 == 0.0114
  ── Failure (test-distances.R:45:3): jaccard ────────────────────────────────────
  jac_dist[1, 2] not equal to 0.816.
  1/1 mismatches
  [1] 0.819 - 0.816 == 0.00305
  ── Failure (test-hash-corpus.R:19:3): Unigram Hash Corpus construction ─────────
  length(m@x) not equal to 140615L.
  1/1 mismatches
  [1] 140674 - 140615 == 59
  ── Failure (test-hash-corpus.R:37:3): trigram hash-corpus construction ─────────
  length(m@x) not equal to 591549L.
  1/1 mismatches
  [1] 592063 - 591549 == 514
  ── Failure (test-iterators.R:24:3): ifiles ─────────────────────────────────────
  nrow(v) not equal to 7448.
  1/1 mismatches
  [1] 7425 - 7448 == -23
  ── Failure (test-iterators.R:37:3): ifiles_parallel ────────────────────────────
  nrow(v) not equal to 7448.
  1/1 mismatches
  [1] 7425 - 7448 == -23
  ── Failure (test-iterators.R:59:3): itoken character ───────────────────────────
  nrow(v) not equal to 4562.
  1/1 mismatches
  [1] 4553 - 4562 == -9
  ── Failure (test-iterators.R:65:3): itoken character parallel ──────────────────
  nrow(v) not equal to 4562.
  1/1 mismatches
  [1] 4553 - 4562 == -9
  ── Failure (test-iterators.R:72:3): itoken list parallel ───────────────────────
  nrow(v) not equal to 4562.
  1/1 mismatches
  [1] 4553 - 4562 == -9
  ── Failure (test-vocab-corpus.R:16:3): Vocabulary pruning ──────────────────────
  length(vocab$term) not equal to 19297.
  1/1 mismatches
  [1] 19123 - 19297 == -174
  ── Failure (test-vocab-corpus.R:19:3): Vocabulary pruning ──────────────────────
  max(vocab$term_count) not equal to 13224.
  1/1 mismatches
  [1] 13252 - 13224 == 28
  ── Failure (test-vocab-corpus.R:86:3): Unigran Vocabulary Corpus construction ──
  length(m@x) not equal to 141714L.
  1/1 mismatches
  [1] 141774 - 141714 == 60
  ── Failure (test-vocab-corpus.R:104:3): bi-gram Vocabulary Corpus construction ──
  sum(grepl("_", vocab$term, fixed = TRUE)) not equal to 121333L.
  1/1 mismatches
  [1] 121246 - 121333 == -87
  ── Failure (test-vocab-corpus.R:105:3): bi-gram Vocabulary Corpus construction ──
  length(vocab$term) not equal to 121333L.
  1/1 mismatches
  [1] 121246 - 121333 == -87
  ── Failure (test-vocab-corpus.R:113:3): bi-gram Vocabulary Corpus construction ──
  length(m@x) not equal to 220104L.
  1/1 mismatches
  [1] 220317 - 220104 == 213
  ── Failure (test-vocab-corpus.R:121:3): Unigram + Bigram Vocabulary Corpus construction ──
  length(vocab$term) not equal to 140630L.
  1/1 mismatches
  [1] 140369 - 140630 == -261
  ── Failure (test-vocab-corpus.R:128:3): Unigram + Bigram Vocabulary Corpus construction ──
  length(m@x) not equal to 361818L.
  1/1 mismatches
  [1] 362091 - 361818 == 273
  
  [ FAIL 17 | WARN 30 | SKIP 0 | PASS 148 ]
  Error: Test failures
  Execution halted