Running ‘testthat.R’ [10s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(discursive)
  > 
  > test_check("discursive")
  Building corpus... 
  Converting to Lower Case... 
  Removing punctuation... 
  Removing stopwords... 
  Remove Custom Stopwords...
  Removing numbers... 
  Stemming... 
  Creating Output... 
  Removing 2741 of 3391 terms (6500 of 40460 tokens) due to frequency 
  Removing 2 Documents with No Words 
  Your corpus now has 970 documents, 650 terms and 33960 tokens.Building corpus... 
  Converting to Lower Case... 
  Removing punctuation... 
  Removing stopwords... 
  Removing numbers... 
  Stemming... 
  Creating Output... 
  Removing 2743 of 3395 terms (6503 of 40657 tokens) due to frequency 
  Removing 2 Documents with No Words 
  Your corpus now has 970 documents, 652 terms and 34154 tokens.Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-discursive.R:2:3'): discursive runs without error ────────────
  Expected `discursive(...)` to run without any errors.
  i Actually got a <simpleError> with text:
    'crossprod' is not an exported object from 'namespace:Matrix'
  ── Failure ('test-discursive_size.R:2:3'): discursive_size runs without error ──
  Expected `discursive_size(...)` to run without any errors.
  i Actually got a <simpleError> with text:
    'crossprod' is not an exported object from 'namespace:Matrix'
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted