Running 'testthat.R' [1s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tm)
  Loading required package: NLP
  > 
  > test_check("tm")
  -- ERROR (test-Source.R:11:3): DataframeSource works ---------------------------
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::VCorpus(ds) test-Source.R:11:2
   2.   \-utils::getS3method("pGetElem", class(x), TRUE)
   3.     \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-TermDocumentMatrix.R:7:3): construction works -------------------
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::VCorpus(vs) test-TermDocumentMatrix.R:7:2
   2.   \-utils::getS3method("pGetElem", class(x), TRUE)
   3.     \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-TermDocumentMatrix.R:26:3): construction with control arguments w
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::VCorpus(vs) test-TermDocumentMatrix.R:26:2
   2.   \-utils::getS3method("pGetElem", class(x), TRUE)
   3.     \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-TermDocumentMatrix.R:40:3): zero matrix works -------------------
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::VCorpus(vs) test-TermDocumentMatrix.R:40:2
   2.   \-utils::getS3method("pGetElem", class(x), TRUE)
   3.     \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- ERROR (test-TermDocumentMatrix.R:53:3): empty matrix works ------------------
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-tm::VCorpus(ds) test-TermDocumentMatrix.R:53:2
   2.   \-utils::getS3method("pGetElem", class(x), TRUE)
   3.     \-base::stopifnot(is.character(class), length(class) == 1L)
  
  -- Skip (test-Transformation.R:4:3): removePunctuation works in latin1 locale --
  Reason: latin1 locale not available
  
  -- Skipped tests  --------------------------------------------------------------
  * latin1 locale not available (1)
  
  == testthat results  ===========================================================
  ERROR (test-Source.R:11:3): DataframeSource works
  ERROR (test-TermDocumentMatrix.R:7:3): construction works
  ERROR (test-TermDocumentMatrix.R:26:3): construction with control arguments works
  ERROR (test-TermDocumentMatrix.R:40:3): zero matrix works
  ERROR (test-TermDocumentMatrix.R:53:3): empty matrix works
  
  [ FAIL 5 | WARN 0 | SKIP 1 | PASS 1 ]
  Error: Test failures
  Execution halted