Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lingmatch)
  Loading required package: Matrix
  > 
  > test_check("lingmatch")
  Saving _problems/test-lma_termcat-39.R
  preparing text (0)
  preparing dict (0)
  extracting matches (0.001)
  preparing results (0.001)
  done (0.012)
  preparing text (0)
  preparing dict (0)
  extracting matches (0.001)
  preparing results (0.001)
  done (0.003)
  preparing text (0)
  preparing dict (0)
  extracting matches (0.001)
  preparing results (0.001)
  done (0.003)
  preparing dict (0)
  extracting matches (0.001)
  preparing results (0.001)
  done (0.009)
  preparing text (0.001)
  preparing dict (0.001)
  extracting matches (0.002)
  preparing results (0.002)
  writing results: /home/hornik/tmp/scratch/RtmpITedWs/file2fdd7832ccf1af.csv (0.015)
  done (0.019)
  [ FAIL 1 | WARN 1 | SKIP 8 | PASS 371 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • 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 /home/hornik/Latent Semantic Spaces/
    from
    /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/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 /home/hornik/tmp/R.check/r-release-gcc/Work/PKGS (1):
    'test-lma_termcat.R:178:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lma_termcat.R:39:3'): bias works ───────────────────────────────
  Error in `dimnames(x) <- dn`: length of 'dimnames' [1] not equal to array extent
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-lma_termcat.R:39:3
   2. │ └─testthat::quasi_label(enquo(object), label)
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─lingmatch::lma_termcat(dtm, as.data.frame(sepcat))
   5.   └─base::`rownames<-`(`*tmp*`, value = c(dict[[1]][!su], dt))
  
  [ FAIL 1 | WARN 1 | SKIP 8 | PASS 371 ]
  Error:
  ! Test failures.
  Execution halted