CRAN Package Check Results for Package quanteda.textstats

Last updated on 2022-09-11 12:56:26 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.95 105.15 169.43 274.58 OK
r-devel-linux-x86_64-debian-gcc 0.95 77.72 126.87 204.59 OK
r-devel-linux-x86_64-fedora-clang 0.95 382.60 OK
r-devel-linux-x86_64-fedora-gcc 0.95 368.65 ERROR
r-devel-windows-x86_64 0.95 210.00 213.00 423.00 OK
r-patched-linux-x86_64 0.95 83.57 160.32 243.89 OK
r-release-linux-x86_64 0.95 83.89 159.39 243.28 OK
r-release-macos-arm64 0.95 90.00 OK
r-release-macos-x86_64 0.95 111.00 OK
r-release-windows-x86_64 0.95 276.00 216.00 492.00 OK
r-oldrel-macos-arm64 0.95 105.00 NOTE
r-oldrel-macos-x86_64 0.95 109.00 OK
r-oldrel-windows-ix86+x86_64 0.95 240.00 317.00 557.00 OK

Check Details

Version: 0.95
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [77s/113s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > Sys.setenv("R_TESTS" = "")
     > Sys.setenv("_R_CHECK_LENGTH_1_CONDITION_" = TRUE)
     >
     > library("testthat")
     > # library("quanteda")
     > library("quanteda.textstats")
     > quanteda::quanteda_options(reset = TRUE)
     >
     > test_check("quanteda.textstats")
     [ FAIL 1 | WARN 0 | SKIP 2 | PASS 481 ]
    
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     • Skipped because stats::chisq.test is wrong for small-value 2x2 tables (1)
     • until all MA measures are made functional (1)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-textstat_simil.R:498:5): diag2na is working ─────────────────────
     Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'as.matrix': no method or default for coercing "ddiMatrix" to "dgTMatrix"
     Backtrace:
     ▆
     1. ├─testthat::expect_equal(...) at test-textstat_simil.R:498:4
     2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
     3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
     4. ├─base::as.matrix(quanteda.textstats:::diag2na(as(mat5, "dgTMatrix")))
     5. ├─quanteda.textstats:::diag2na(as(mat5, "dgTMatrix"))
     6. │ └─methods::is(x, "dsTMatrix")
     7. ├─methods::as(mat5, "dgTMatrix")
     8. │ └─base::stop(...)
     9. └─base::.handleSimpleError(...)
     10. └─base (local) h(simpleError(msg, call))
    
     [ FAIL 1 | WARN 0 | SKIP 2 | PASS 481 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.95
Check: installed package size
Result: NOTE
     installed size is 5.6Mb
     sub-directories of 1Mb or more:
     libs 5.1Mb
Flavor: r-oldrel-macos-arm64