Running ‘testthat.R’ [65s/63s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  quanteda version 0.99
  Using 16 of 32 threads for parallel computing
  
  Attaching package: 'quanteda'
  
  The following object is masked from 'package:utils':
  
      View
  
  > 
  > qopts <- quanteda_options()
  > quanteda_options(reset = TRUE)
  > test_check("quanteda")
  <<DocumentTermMatrix (documents: 4, terms: 4)>>
  Non-/sparse entries: 8/8
  Sparsity           : 50%
  Maximal term length: 5
  Weighting          : term frequency (tf)
  Sample             :
         Terms
  Docs    feat1 feat2 feat3 feat4
    text1     1     0     2     0
    text2     0     0     1     2
    text3     0     0     0     0
    text4     1     2     3     4
  <<DocumentTermMatrix (documents: 4, terms: 4)>>
  Non-/sparse entries: 8/8
  Sparsity           : 50%
  Maximal term length: 5
  Weighting          : term frequency (tf)
  Sample             :
         Terms
  Docs    feat1 feat2 feat3 feat4
    text1     1     0     2     0
    text2     0     0     1     2
    text3     1     0     0     0
    text4     1     0     3     4
  <<DocumentTermMatrix (documents: 3, terms: 3)>>
  Non-/sparse entries: 9/0
  Sparsity           : 0%
  Maximal term length: 5
  Weighting          : term frequency (tf)
  Sample             :
         Terms
  Docs    feat1 feat2 feat3
    text1     1     4     7
    text2     2     5     8
    text3     3     6     9
  1. Error: test textplot_scale1d wordfish in the most basic way (@test-plots.R#96) 
  dfmSparse is not supported.
  1: textmodel_wordfish(dfm(data_corpus_irishbudget2010), dir = c(6, 5)) at testthat/test-plots.R:96
  2: textmodel_wordfish.dfm(dfm(data_corpus_irishbudget2010), dir = c(6, 5))
  3: wordfishcpp_mt(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  2. Error: textmodel-ca works as expected as ca::ca : use mt (@test-textmodel_ca.R#27) 
  dfmSparse is not supported.
  1: textmodel_ca(ie2010dfm, threads = 2, sparse = TRUE) at testthat/test-textmodel_ca.R:27
  2: textmodel_ca.dfm(ie2010dfm, threads = 2, sparse = TRUE)
  3: cacpp(P, threads, residual_floor/sqrt(n))
  
  3. Error: textmodel-ca(sparse) works as expected on another dataset (@test-textmodel_ca.R#68) 
  dfmSparse is not supported.
  1: textmodel_ca(usdfm, threads = 2, sparse = TRUE) at testthat/test-textmodel_ca.R:68
  2: textmodel_ca.dfm(usdfm, threads = 2, sparse = TRUE)
  3: cacpp(P, threads, residual_floor/sqrt(n))
  
  4. Error: textmodel-wordfish works as expected: dense vs sparse vs sparse+mt (@test-textmodel_wordfish.R#22) 
  dfmSparse is not supported.
  1: textmodel_wordfish(ie2010dfm, dir = c(6, 5), sparse = TRUE, threads = 1) at testthat/test-textmodel_wordfish.R:22
  2: textmodel_wordfish.dfm(ie2010dfm, dir = c(6, 5), sparse = TRUE, threads = 1)
  3: wordfishcpp(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  5. Error: print/show/summary method works as expected (@test-textmodel_wordfish.R#32) 
  dfmSparse is not supported.
  1: textmodel_wordfish(ie2010dfm, dir = c(6, 5), sparse = TRUE, threads = 1) at testthat/test-textmodel_wordfish.R:32
  2: textmodel_wordfish.dfm(ie2010dfm, dir = c(6, 5), sparse = TRUE, threads = 1)
  3: wordfishcpp(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  6. Error: coef works for wordfish fitted (@test-textmodel_wordfish.R#64) -------
  dfmSparse is not supported.
  1: textmodel_wordfish(ie2010dfm, dir = c(6, 5), sparse = TRUE) at testthat/test-textmodel_wordfish.R:64
  2: textmodel_wordfish.dfm(ie2010dfm, dir = c(6, 5), sparse = TRUE)
  3: wordfishcpp_mt(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  7. Error: textmodel-wordfish works for quasipoisson - feature as expected: dense vs sparse vs sparse+mt (@test-textmodel_wordfish.R#81) 
  dfmSparse is not supported.
  1: textmodel_wordfish(ie2010dfm, dir = c(6, 5), dispersion = "quasipoisson", dispersion_floor = 0) at testthat/test-textmodel_wordfish.R:81
  2: textmodel_wordfish.dfm(ie2010dfm, dir = c(6, 5), dispersion = "quasipoisson", dispersion_floor = 0)
  3: wordfishcpp_mt(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  8. Error: textmodel-wordfish works for quasipoisson - overall as expected: dense vs sparse vs sparse+mt (@test-textmodel_wordfish.R#103) 
  dfmSparse is not supported.
  1: textmodel_wordfish(ie2010dfm, dir = c(6, 5), dispersion = "quasipoisson", dispersion_level = "overall") at testthat/test-textmodel_wordfish.R:103
  2: textmodel_wordfish.dfm(ie2010dfm, dir = c(6, 5), dispersion = "quasipoisson", dispersion_level = "overall")
  3: wordfishcpp_mt(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  9. Error: textmodel-wordfish (sparse) works as expected on another dataset (@test-textmodel_wordfish.R#119) 
  dfmSparse is not supported.
  1: textmodel_wordfish(usdfm, dir = c(6, 5), sparse = TRUE, svd_sparse = TRUE, residual_floor = 0.5) at testthat/test-textmodel_wordfish.R:119
  2: textmodel_wordfish.dfm(usdfm, dir = c(6, 5), sparse = TRUE, svd_sparse = TRUE, residual_floor = 0.5)
  3: wordfishcpp_mt(x, as.integer(dir), 1/(priors^2), tol, disp, dispersion_floor, abs_err, 
         svd_sparse, residual_floor)
  
  10. Error: test textstat_dist method = "manhattan" against proxy dist() : documents (@test-textstat_dist.R#91) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, method = "manhattan", margin = "documents")) at testthat/test-textstat_dist.R:91
  2: textstat_dist(presDfm, method = "manhattan", margin = "documents")
  3: textstat_dist.dfm(presDfm, method = "manhattan", margin = "documents")
  4: get(paste0(method, "_sparse"))(x, y, margin = m)
  5: qatd_ManhattanPara_cpp(x, margin)
  
  11. Error: test textstat_dist method = "manhattan" against proxy dist() : features (@test-textstat_dist.R#100) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, "soviet", method = "manhattan", margin = "features")) at testthat/test-textstat_dist.R:100
  2: textstat_dist(presDfm, "soviet", method = "manhattan", margin = "features")
  3: textstat_dist.dfm(presDfm, "soviet", method = "manhattan", margin = "features")
  4: get(paste0(method, "_sparse"))(x, y, margin = m)
  5: qatd_ManhattanPara_cpp2(x, y, margin)
  
  12. Error: test textstat_dist method = "Maximum" against proxy dist() : documents (@test-textstat_dist.R#115) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, method = "maximum", margin = "documents")) at testthat/test-textstat_dist.R:115
  2: textstat_dist(presDfm, method = "maximum", margin = "documents")
  3: textstat_dist.dfm(presDfm, method = "maximum", margin = "documents")
  4: get(paste0(method, "_sparse"))(x, y, margin = m)
  5: qatd_MaximumPara_cpp(x, margin)
  
  13. Error: test textstat_dist method = "Maximum" against proxy dist() : features (@test-textstat_dist.R#124) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, "soviet", method = "maximum", margin = "features")) at testthat/test-textstat_dist.R:124
  2: textstat_dist(presDfm, "soviet", method = "maximum", margin = "features")
  3: textstat_dist.dfm(presDfm, "soviet", method = "maximum", margin = "features")
  4: get(paste0(method, "_sparse"))(x, y, margin = m)
  5: qatd_MaximumPara_cpp2(x, y, margin)
  
  14. Error: test textstat_dist method = "Canberra" against proxy dist() : documents (@test-textstat_dist.R#141) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, method = "canberra", margin = "documents")) at testthat/test-textstat_dist.R:141
  2: textstat_dist(presDfm, method = "canberra", margin = "documents")
  3: textstat_dist.dfm(presDfm, method = "canberra", margin = "documents")
  4: get(paste0(method, "_sparse"))(x, y, margin = m)
  5: qatd_CanberraPara_cpp(x, margin)
  
  15. Error: test textstat_dist method = "Canberra" against proxy dist() : features (@test-textstat_dist.R#151) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, "soviet", method = "canberra", margin = "features")) at testthat/test-textstat_dist.R:151
  2: textstat_dist(presDfm, "soviet", method = "canberra", margin = "features")
  3: textstat_dist.dfm(presDfm, "soviet", method = "canberra", margin = "features")
  4: get(paste0(method, "_sparse"))(x, y, margin = m)
  5: qatd_CanberraPara_cpp2(x, y, margin)
  
  16. Error: test textstat_dist method = "Minkowski" against proxy dist() : documents (@test-textstat_dist.R#166) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, method = "minkowski", margin = "documents", p = 3)) at testthat/test-textstat_dist.R:166
  2: textstat_dist(presDfm, method = "minkowski", margin = "documents", p = 3)
  3: textstat_dist.dfm(presDfm, method = "minkowski", margin = "documents", p = 3)
  4: get(paste0(method, "_sparse"))(x, y, margin = m, p = p)
  5: qatd_MinkowskiPara_cpp(x, margin, p)
  
  17. Error: test textstat_dist method = "Canberra" against proxy dist() : features (@test-textstat_dist.R#175) 
  dfmSparse is not supported.
  1: as.matrix(textstat_dist(presDfm, "soviet", method = "minkowski", margin = "features", 
         p = 4)) at testthat/test-textstat_dist.R:175
  2: textstat_dist(presDfm, "soviet", method = "minkowski", margin = "features", p = 4)
  3: textstat_dist.dfm(presDfm, "soviet", method = "minkowski", margin = "features", p = 4)
  4: get(paste0(method, "_sparse"))(x, y, margin = m, p = p)
  5: qatd_MinkowskiPara_cpp2(x, y, margin, p)
  
  testthat results ================================================================
  OK: 1390 SKIPPED: 19 FAILED: 17
  1. Error: test textplot_scale1d wordfish in the most basic way (@test-plots.R#96) 
  2. Error: textmodel-ca works as expected as ca::ca : use mt (@test-textmodel_ca.R#27) 
  3. Error: textmodel-ca(sparse) works as expected on another dataset (@test-textmodel_ca.R#68) 
  4. Error: textmodel-wordfish works as expected: dense vs sparse vs sparse+mt (@test-textmodel_wordfish.R#22) 
  5. Error: print/show/summary method works as expected (@test-textmodel_wordfish.R#32) 
  6. Error: coef works for wordfish fitted (@test-textmodel_wordfish.R#64) 
  7. Error: textmodel-wordfish works for quasipoisson - feature as expected: dense vs sparse vs sparse+mt (@test-textmodel_wordfish.R#81) 
  8. Error: textmodel-wordfish works for quasipoisson - overall as expected: dense vs sparse vs sparse+mt (@test-textmodel_wordfish.R#103) 
  9. Error: textmodel-wordfish (sparse) works as expected on another dataset (@test-textmodel_wordfish.R#119) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted