Running ‘testthat.R’ [467s/493s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > require(testthat)
  Loading required package: testthat
  > test_check("LSX")
  Loading required package: LSX
  Loading required package: quanteda
  Package version: 2.1.1
  Parallel computing: 2 of 16 threads used.
  See https://quanteda.io for tutorials and examples.
  
  Attaching package: 'quanteda'
  
  The following object is masked from 'package:utils':
  
      View
  
  Loading required package: quanteda.textmodels
  
  Attaching package: 'quanteda.textmodels'
  
  The following object is masked from 'package:quanteda':
  
      data_dfm_lbgexample
  
  ── 1. Failure: predict.textmodel_lss retuns NA for empty documents (@test-textmo
  pred[c("1789-Washington", "1797-Adams", "1825-Adams")] not equal to c(`1789-Washington` = -0.762, `1797-Adams` = NA, `1825-Adams` = NA).
  1/3 mismatches
  [1] -0.661 - -0.762 == 0.101
  
  ── 2. Failure: predict.textmodel_lss retuns NA for empty documents (@test-textmo
  pred2$fit[c("1789-Washington", "1797-Adams", "1825-Adams")] not equal to c(`1789-Washington` = -0.762, `1797-Adams` = NA, `1825-Adams` = NA).
  1/3 mismatches
  [1] -0.661 - -0.762 == 0.101
  
  ── 3. Failure: predict.textmodel_lss retuns NA for empty documents (@test-textmo
  pred2$se.fit[c(1, 3, 10)] not equal to c(0.931129, NA, NA).
  1/3 mismatches
  [1] 0.914 - 0.931 == -0.0176
  
  INFO  [16:32:44.842] epoch 1, loss 0.2519 
  INFO  [16:32:50.437] epoch 2, loss 0.1703 
  INFO  [16:32:55.937] epoch 3, loss 0.1412 
  INFO  [16:33:01.391] epoch 4, loss 0.1271 
  INFO  [16:33:06.869] epoch 5, loss 0.1172 
  INFO  [16:33:12.362] epoch 6, loss 0.1087 
  INFO  [16:33:17.890] epoch 7, loss 0.1015 
  INFO  [16:33:23.386] epoch 8, loss 0.0954 
  INFO  [16:33:28.892] epoch 9, loss 0.0902 
  INFO  [16:33:34.393] epoch 10, loss 0.0859 
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 98 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 3 ]
  1. Failure: predict.textmodel_lss retuns NA for empty documents (@test-textmodel.R#189) 
  2. Failure: predict.textmodel_lss retuns NA for empty documents (@test-textmodel.R#194) 
  3. Failure: predict.textmodel_lss retuns NA for empty documents (@test-textmodel.R#197) 
  
  Error: testthat unit tests failed
  Execution halted