Running 'testthat.R' [145s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > require(testthat)
  Loading required package: testthat
  > test_check("LSX")
  Loading required package: LSX
  INFO  [19:45:00.054] epoch 1, loss 0.1119 
  INFO  [19:45:02.222] epoch 2, loss 0.0662 
  INFO  [19:45:04.219] epoch 3, loss 0.0550 
  INFO  [19:45:06.153] epoch 4, loss 0.0496 
  INFO  [19:45:08.041] epoch 5, loss 0.0460 
  INFO  [19:45:10.097] epoch 6, loss 0.0432 
  INFO  [19:45:12.188] epoch 7, loss 0.0408 
  INFO  [19:45:14.263] epoch 8, loss 0.0387 
  INFO  [19:45:16.540] epoch 9, loss 0.0369 
  INFO  [19:45:18.631] epoch 10, loss 0.0354 
  INFO  [19:45:39.567] epoch 1, loss 0.1094 
  INFO  [19:45:41.796] epoch 2, loss 0.0643 
  INFO  [19:45:43.917] epoch 3, loss 0.0535 
  INFO  [19:45:46.037] epoch 4, loss 0.0484 
  INFO  [19:45:48.064] epoch 5, loss 0.0449 
  INFO  [19:45:50.118] epoch 6, loss 0.0422 
  INFO  [19:45:52.127] epoch 7, loss 0.0399 
  INFO  [19:45:54.232] epoch 8, loss 0.0379 
  INFO  [19:45:56.279] epoch 9, loss 0.0361 
  INFO  [19:45:58.260] epoch 10, loss 0.0346 
  INFO  [19:46:17.655] epoch 1, loss 0.0504 
  INFO  [19:46:18.310] epoch 2, loss 0.0365 
  INFO  [19:46:18.747] epoch 3, loss 0.0328 
  INFO  [19:46:19.214] epoch 4, loss 0.0307 
  INFO  [19:46:19.620] epoch 5, loss 0.0292 
  INFO  [19:46:20.025] epoch 6, loss 0.0280 
  INFO  [19:46:20.430] epoch 7, loss 0.0271 
  INFO  [19:46:20.820] epoch 8, loss 0.0263 
  INFO  [19:46:21.226] epoch 9, loss 0.0257 
  INFO  [19:46:21.600] epoch 10, loss 0.0252 
  == Skipped tests ===============================================================
  * On CRAN (2)
  * empty test (1)
  
  == Failed tests ================================================================
  -- Error (test-textmodel.R:288:5): slice argument is working -------------------
  Error: memory allocation error: failed to allocate 598144 bytes
  Backtrace:
       x
    1. +-testthat::expect_silent(...) test-textmodel.R:288:4
    2. | \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. |   +-testthat:::.capture(...)
    4. |   | +-withr::with_output_sink(...)
    5. |   | | \-base::force(code)
    6. |   | +-base::withCallingHandlers(...)
    7. |   | \-base::withVisible(code)
    8. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. +-LSX::textmodel_lss(...)
   10. \-LSX:::textmodel_lss.dfm(...)
   11.   \-LSX:::expand_seeds(seeds, featnames(x), verbose)
   12.     \-LSX:::weight_seeds(seeds, features)
   13.       \-base::lapply(...)
   14.         \-LSX:::FUN(X[[i]], ...)
   15.           +-base::unlist(quanteda::pattern2fixed(x, type, "glob", FALSE))
   16.           \-quanteda::pattern2fixed(x, type, "glob", FALSE)
   17.             \-quanteda::pattern2id(...)
   18.               \-quanteda::index_types(types, valuetype, case_insensitive, max_len)
   19.                 \-stringi::stri_trans_nfc(types)
  -- Error (test-textmodel.R:304:5): test smooth_lss -----------------------------
  Error: cannot allocate vector of size 437.1 Mb
  Backtrace:
       x
    1. +-testthat::expect_silent(smooth_lss(dat, lss_var = "lss", date_var = "time")) test-textmodel.R:304:4
    2. | \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. |   +-testthat:::.capture(...)
    4. |   | +-withr::with_output_sink(...)
    5. |   | | \-base::force(code)
    6. |   | +-base::withCallingHandlers(...)
    7. |   | \-base::withVisible(code)
    8. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. \-LSX::smooth_lss(dat, lss_var = "lss", date_var = "time")
   10.   +-base::suppressWarnings(...)
   11.   | \-base::withCallingHandlers(...)
   12.   +-stats::predict(...)
   13.   \-stats:::predict.loess(...)
   14.     \-stats:::predLoess(...)
  -- Error (test-utils.R:70:5): strength works -----------------------------------
  Error: std::bad_alloc
  Backtrace:
      x
   1. +-LSX::textmodel_lss(dfmt_test, seed_test, terms = feat_test, k = 300) test-utils.R:70:4
   2. \-LSX:::textmodel_lss.dfm(...)
   3.   \-LSX:::cache_svd(x, k, weight, engine, cache, ...)
   4.     +-RSpectra::svds(as(x, "dgCMatrix"), k = k, nu = 0, nv = k, ...)
   5.     \-RSpectra:::svds.dgCMatrix(...)
   6.       \-RSpectra:::fun(A, k, nu, nv, opts, mattype = "dgCMatrix")
  
  [ FAIL 3 | WARN 2 | SKIP 3 | PASS 143 ]
  Error: Test failures
  Execution halted