Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rainette)
  
  Attaching package: 'rainette'
  
  The following object is masked from 'package:stats':
  
      cutree
  
  > 
  > test_check("rainette")
  == Skipped tests ===============================================================
  * Skipping plots (1)
  
  == Failed tests ================================================================
  -- Error (test_cutree.R:6:1): (code run outside of `test_that()`) --------------
  Error: invalid class "dfm" object: superclass "Mnumeric" not defined in the environment of the object's class
  Backtrace:
       x
    1. +-quanteda::dfm(tokens(mini_corpus, remove_punct = TRUE), tolower = TRUE) test_cutree.R:6:0
    2. \-quanteda:::dfm.tokens(...)
    3.   +-quanteda:::dfm.dfm(...)
    4.   | \-quanteda::as.dfm(x)
    5.   \-quanteda:::build_dfm(...)
    6.     \-methods::new(...)
    7.       +-methods::initialize(value, ...)
    8.       \-Matrix:::initialize(value, ...)
    9.         +-methods::callNextMethod()
   10.         \-methods:::.nextMethod(.Object = .Object, ... = ...)
   11.           \-methods::validObject(.Object)
  -- Error (test_keyness.R:7:1): (code run outside of `test_that()`) -------------
  Error: invalid class "dfm" object: superclass "Mnumeric" not defined in the environment of the object's class
  Backtrace:
       x
    1. +-quanteda::dfm(tokens(mini_corpus, remove_punct = TRUE), tolower = TRUE) test_keyness.R:7:0
    2. \-quanteda:::dfm.tokens(...)
    3.   +-quanteda:::dfm.dfm(...)
    4.   | \-quanteda::as.dfm(x)
    5.   \-quanteda:::build_dfm(...)
    6.     \-methods::new(...)
    7.       +-methods::initialize(value, ...)
    8.       \-Matrix:::initialize(value, ...)
    9.         +-methods::callNextMethod()
   10.         \-methods:::.nextMethod(.Object = .Object, ... = ...)
   11.           \-methods::validObject(.Object)
  -- Error (test_rainette1.R:16:1): (code run outside of `test_that()`) ----------
  Error: invalid class "dfm" object: superclass "Mnumeric" not defined in the environment of the object's class
  Backtrace:
       x
    1. +-quanteda::as.dfm(m) test_rainette1.R:16:0
    2. \-quanteda:::as.dfm.matrix(m)
    3.   \-quanteda:::matrix2dfm(x)
    4.     \-quanteda:::build_dfm(...)
    5.       \-methods::new(...)
    6.         +-methods::initialize(value, ...)
    7.         \-Matrix:::initialize(value, ...)
    8.           +-methods::callNextMethod()
    9.           \-methods:::.nextMethod(.Object = .Object, ... = ...)
   10.             \-methods::validObject(.Object)
  -- Error (test_rainette2.R:6:1): (code run outside of `test_that()`) -----------
  Error: invalid class "dfm" object: superclass "Mnumeric" not defined in the environment of the object's class
  Backtrace:
       x
    1. +-quanteda::dfm(tokens(mini_corpus, remove_punct = TRUE), tolower = TRUE) test_rainette2.R:6:0
    2. \-quanteda:::dfm.tokens(...)
    3.   +-quanteda:::dfm.dfm(...)
    4.   | \-quanteda::as.dfm(x)
    5.   \-quanteda:::build_dfm(...)
    6.     \-methods::new(...)
    7.       +-methods::initialize(value, ...)
    8.       \-Matrix:::initialize(value, ...)
    9.         +-methods::callNextMethod()
   10.         \-methods:::.nextMethod(.Object = .Object, ... = ...)
   11.           \-methods::validObject(.Object)
  -- Error (test_rcpp.R:16:1): (code run outside of `test_that()`) ---------------
  Error: invalid class "dfm" object: superclass "Mnumeric" not defined in the environment of the object's class
  Backtrace:
       x
    1. +-quanteda::as.dfm(m) test_rcpp.R:16:0
    2. \-quanteda:::as.dfm.matrix(m)
    3.   \-quanteda:::matrix2dfm(x)
    4.     \-quanteda:::build_dfm(...)
    5.       \-methods::new(...)
    6.         +-methods::initialize(value, ...)
    7.         \-Matrix:::initialize(value, ...)
    8.           +-methods::callNextMethod()
    9.           \-methods:::.nextMethod(.Object = .Object, ... = ...)
   10.             \-methods::validObject(.Object)
  -- Error (test_utils.R:16:1): (code run outside of `test_that()`) --------------
  Error: invalid class "dfm" object: superclass "Mnumeric" not defined in the environment of the object's class
  Backtrace:
       x
    1. +-quanteda::as.dfm(m) test_utils.R:16:0
    2. \-quanteda:::as.dfm.matrix(m)
    3.   \-quanteda:::matrix2dfm(x)
    4.     \-quanteda:::build_dfm(...)
    5.       \-methods::new(...)
    6.         +-methods::initialize(value, ...)
    7.         \-Matrix:::initialize(value, ...)
    8.           +-methods::callNextMethod()
    9.           \-methods:::.nextMethod(.Object = .Object, ... = ...)
   10.             \-methods::validObject(.Object)
  
  [ FAIL 6 | WARN 0 | SKIP 1 | PASS 54 ]
  Error: Test failures
  In addition: Warning message:
  In for (i in 1L:d2) { : closing unused connection 4 (doesnt/exist.txtt)
  Execution halted