Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lingmatch)
  Loading required package: Matrix
  > 
  > test_check("lingmatch")
  preparing text (0)
  preparing dict (0)
  extracting matches (0)
  preparing results (0)
  done (0.02)
  preparing text (0)
  preparing dict (0)
  extracting matches (0)
  preparing results (0)
  done (0.02)
  preparing text (0)
  preparing dict (0)
  extracting matches (0)
  preparing results (0)
  done (0)
  preparing dict (0)
  extracting matches (0)
  preparing results (0)
  done (0)
  preparing text (0)
  preparing dict (0)
  extracting matches (0.02)
  preparing results (0.02)
  writing results: D:\temp\RtmpSm4LaB\file30bacf46233d.csv (0.02)
  done (0.03)
  [ FAIL 2 | WARN 1 | SKIP 9 | PASS 348 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • embeddings files not downloaded (3): 'test-dictionary_meta.R:4:1',
    'test-lma_lspace.R:18:1', 'test-report_term_matches.R:48:1'
  • not downloading dictionary or embeddings files (1): 'test-utils.R:313:1'
  • raw embeddings test files not present in C:\Users\CRAN\Documents/Latent
    Semantic Spaces/ from
    d:/Rcompile/CRANpkg/local/4.3/lingmatch.Rcheck/tests/testthat (1):
    'test-utils.R:288:3'
  • term map not present (1): 'test-utils.R:281:3'
  • test dictionary is not present (1): 'test-lma_patcat.R:109:1'
  • texts.txt not found in D:\RCompile\CRANpkg\local\4.3 (1):
    'test-lma_termcat.R:178:1'
  • unable to read package files (1): 'test-utils.R:222:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-lingmatch.R:20:3'): different input formats have the same results ──
  as.numeric(lingmatch(as.data.frame(as.matrix(dtm)))$sim) not equal to `manual`.
  1048/2500 mismatches (average diff: 0.0754)
  [2]  0 - 0.0519 == -0.0519
  [3]  0 - 0.0712 == -0.0712
  [4]  0 - 0.1539 == -0.1539
  [5]  0 - 0.0868 == -0.0868
  [6]  0 - 0.0903 == -0.0903
  [7]  0 - 0.0208 == -0.0208
  [8]  0 - 0.0703 == -0.0703
  [9]  0 - 0.0667 == -0.0667
  [10] 0 - 0.0664 == -0.0664
  ...
  ── Error ('test-lingmatch.R:22:3'): different input formats have the same results ──
  Error: a must have more than 1 row when b is not provided
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-lingmatch.R:22:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─lingmatch::lingmatch(cbind(as.data.frame(as.matrix(dtm)), id = "a"))
   7.   ├─base::do.call(lma_simets, c(list(input), sal))
   8.   └─lingmatch (local) `<fn>`(`<dbl[,50]>`, metric = "cosine", mean = FALSE)
  
  [ FAIL 2 | WARN 1 | SKIP 9 | PASS 348 ]
  Error: Test failures
  Execution halted