Running ‘testthat.R’ [17s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(text2map)
  Loading required package: Matrix
  > options(useFancyQuotes = FALSE)
  > 
  > test_check("text2map")
  Loading required package: tm
  Loading required package: NLP
  Loading required package: quanteda
  Loading required package: quanteda
  Loading required package: quanteda
  Loading required package: quanteda
  Loading required package: quanteda
  Loading required package: quanteda
  Loading required package: quanteda
  [ FAIL 6 | WARN 6 | SKIP 12 | PASS 430 ]
  
  ══ Skipped tests (12) ══════════════════════════════════════════════════════════
  • On CRAN (12): 'test-CMDist-d-parallel.R:5:5',
    'test-CMDist-d-parallel.R:81:5', 'test-CMDist-d-parallel.R:110:5',
    'test-CMDist-d-parallel.R:170:5', 'test-CoCA.R:3:3', 'test-CoCA.R:31:3',
    'test-CoCA.R:128:3', 'test-CoCA.R:147:3', 'test-utils-perm.R:3:5',
    'test-utils-perm.R:24:3', 'test-utils-perm.R:134:3',
    'test-utils-perm.R:187:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CMDist-a-prep.R:38:3'): .prep_cmd_INPUT works on dfm DTM ───────
  Error in `.requirePackage(package)`: unable to find required package 'quanteda'
  Backtrace:
      ▆
   1. └─text2map:::.prep_cmd_INPUT(...) at test-CMDist-a-prep.R:38:3
   2.   └─text2map:::.convert_mat_to_dgCMatrix(dtm)
   3.     ├─methods::as(...)
   4.     │ └─methods:::.class1(object)
   5.     ├─methods::as(methods::as(dtm, "dMatrix"), "generalMatrix")
   6.     │ └─methods:::.class1(object)
   7.     └─methods::as(dtm, "dMatrix")
   8.       └─methods::.classEnv(thisClass, mustFind = FALSE)
   9.         └─methods:::.requirePackage(package)
  ── Error ('test-CMDist-a-prep.R:97:3'): .prep_cmd_INPUT adds OOV words on different DTM types ──
  Error in `.requirePackage(package)`: unable to find required package 'quanteda'
  Backtrace:
      ▆
   1. └─text2map:::.prep_cmd_INPUT(...) at test-CMDist-a-prep.R:97:3
   2.   └─text2map:::.convert_mat_to_dgCMatrix(dtm)
   3.     ├─methods::as(...)
   4.     │ └─methods:::.class1(object)
   5.     ├─methods::as(methods::as(dtm, "dMatrix"), "generalMatrix")
   6.     │ └─methods:::.class1(object)
   7.     └─methods::as(dtm, "dMatrix")
   8.       └─methods::.classEnv(thisClass, mustFind = FALSE)
   9.         └─methods:::.requirePackage(package)
  ── Error ('test-CMDist-a-prep.R:148:3'): .prep_cmd_INPUT adds concept vectors on different DTM types ──
  Error in `.requirePackage(package)`: unable to find required package 'quanteda'
  Backtrace:
      ▆
   1. └─text2map:::.prep_cmd_INPUT(...) at test-CMDist-a-prep.R:148:3
   2.   └─text2map:::.convert_mat_to_dgCMatrix(dtm)
   3.     ├─methods::as(...)
   4.     │ └─methods:::.class1(object)
   5.     ├─methods::as(methods::as(dtm, "dMatrix"), "generalMatrix")
   6.     │ └─methods:::.class1(object)
   7.     └─methods::as(dtm, "dMatrix")
   8.       └─methods::.classEnv(thisClass, mustFind = FALSE)
   9.         └─methods:::.requirePackage(package)
  ── Error ('test-CMDist-a-prep.R:201:3'): .prep_cmd_INPUT adds concept vectors and
              OOV words on different DTM types ──
  Error in `.requirePackage(package)`: unable to find required package 'quanteda'
  Backtrace:
      ▆
   1. └─text2map:::.prep_cmd_INPUT(...) at test-CMDist-a-prep.R:201:3
   2.   └─text2map:::.convert_mat_to_dgCMatrix(dtm)
   3.     ├─methods::as(...)
   4.     │ └─methods:::.class1(object)
   5.     ├─methods::as(methods::as(dtm, "dMatrix"), "generalMatrix")
   6.     │ └─methods:::.class1(object)
   7.     └─methods::as(dtm, "dMatrix")
   8.       └─methods::.classEnv(thisClass, mustFind = FALSE)
   9.         └─methods:::.requirePackage(package)
  ── Error ('test-CMDist-b-cmdist.R:30:3'): CMDist works on different DTMtypes ───
  Error in `.requirePackage(package)`: unable to find required package 'quanteda'
  Backtrace:
       ▆
    1. └─text2map::CMDist(...) at test-CMDist-b-cmdist.R:30:3
    2.   └─text2map:::.prep_cmd_INPUT(dtm, cw, cv, wv, missing)
    3.     └─text2map:::.convert_mat_to_dgCMatrix(dtm)
    4.       ├─methods::as(...)
    5.       │ └─methods:::.class1(object)
    6.       ├─methods::as(methods::as(dtm, "dMatrix"), "generalMatrix")
    7.       │ └─methods:::.class1(object)
    8.       └─methods::as(dtm, "dMatrix")
    9.         └─methods::.classEnv(thisClass, mustFind = FALSE)
   10.           └─methods:::.requirePackage(package)
  ── Error ('test-utils-dtm.R:257:5'): .convert_mat_to_dgCMatrix convert all dtms to dgCMatrix ──
  Error in `.requirePackage(package)`: unable to find required package 'quanteda'
  Backtrace:
       ▆
    1. ├─testthat::expect_s4_class(...) at test-utils-dtm.R:257:5
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─text2map:::.convert_mat_to_dgCMatrix(dtm.dfm)
    5.   ├─methods::as(...)
    6.   │ └─methods:::.class1(object)
    7.   ├─methods::as(methods::as(dtm, "dMatrix"), "generalMatrix")
    8.   │ └─methods:::.class1(object)
    9.   └─methods::as(dtm, "dMatrix")
   10.     └─methods::.classEnv(thisClass, mustFind = FALSE)
   11.       └─methods:::.requirePackage(package)
  
  [ FAIL 6 | WARN 6 | SKIP 12 | PASS 430 ]
  Error: Test failures
  In addition: Warning message:
  In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE,  :
    there is no package called 'quanteda'
  Execution halted