CRAN Package Check Results for Package quanteda.textstats

Last updated on 2021-01-25 00:48:07 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.91 95.24 176.71 271.95 OK
r-devel-linux-x86_64-debian-gcc 0.91 70.31 132.43 202.74 OK
r-devel-linux-x86_64-fedora-clang 0.91 358.27 NOTE
r-devel-linux-x86_64-fedora-gcc 0.91 276.77 NOTE
r-devel-windows-ix86+x86_64 0.91 239.00 300.00 539.00 OK
r-patched-linux-x86_64 0.91 80.12 168.03 248.15 OK
r-patched-solaris-x86 0.91 396.80 ERROR
r-release-linux-x86_64 0.91 82.83 170.08 252.91 OK
r-release-macos-x86_64 0.91 NOTE
r-release-windows-ix86+x86_64 0.91 240.00 353.00 593.00 OK
r-oldrel-macos-x86_64 0.91 NOTE
r-oldrel-windows-ix86+x86_64 0.91 172.00 334.00 506.00 OK

Check Details

Version: 0.91
Check: dependencies in R code
Result: NOTE
    Namespace in Imports field not imported from: ‘digest’
     All declared Imports should be used.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.91
Check: examples
Result: ERROR
    Running examples in ‘quanteda.textstats-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: textstat_summary
    > ### Title: Summarize documents
    > ### Aliases: textstat_summary
    > ### Keywords: textstat
    >
    > ### ** Examples
    >
    > library("quanteda")
    Package version: 2.1.2
    Parallel computing: 2 of 16 threads used.
    See https://quanteda.io for tutorials and examples.
    
    Attaching package: ‘quanteda’
    
    The following objects are masked from ‘package:quanteda.textstats’:
    
     nscrabble, textstat_collocations, textstat_dist, textstat_entropy,
     textstat_frequency, textstat_keyness, textstat_lexdiv,
     textstat_proxy, textstat_readability, textstat_select,
     textstat_simil, textstat_summary
    
    The following object is masked from ‘package:utils’:
    
     View
    
    > corp <- data_corpus_inaugural
    > textstat_summary(corp)
    Error in h(simpleError(msg, call)) :
     error in evaluating the argument 'x' in selecting a method for function 'as.list': error in evaluating the argument 'x' in selecting a method for function 'which': Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR, context=`^\p{emoji_presentation}+$`)
    Calls: textstat_summary ... stri_detect_regex -> .handleSimpleError -> h -> .handleSimpleError -> h
    Execution halted
Flavor: r-patched-solaris-x86

Version: 0.91
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [93s/124s]
    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")
     Registered S3 methods overwritten by 'quanteda.textstats':
     method from
     [.textstat quanteda
     as.data.frame.textstat_proxy quanteda
     as.list.textstat_proxy quanteda
     head.textstat_proxy quanteda
     tail.textstat_proxy quanteda
     > quanteda::quanteda_options(reset = TRUE)
     >
     > test_check("quanteda.textstats")
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     ● On Solaris (1)
     ● Skip until textstat_simil() has been corrected for empty dfms (1)
     ● Skipped because stats::chisq.test is wrong for small-value 2x2 tables (1)
     ● skip until textstat_dist() works correctly for zero-variance documents (1)
     ● until all MA measures are made functional (1)
    
     ══ Warnings ════════════════════════════════════════════════════════════════════
     ── Warning (test-textstat_dist.R:47:5): textstat_dist() returns NA for empty dfm ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_dist.R:47:4
     8. quanteda.textstats:::textstat_dist.dfm(mt, method = "euclidean")
     9. quanteda.textstats::textstat_proxy(...)
     10. quanteda.textstats:::make_na_matrix(...)
     11. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_dist.R:55:5): textstat_dist() returns NA for empty dfm ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_dist.R:55:4
     8. quanteda.textstats:::textstat_dist.dfm(mt, method = "manhattan")
     9. quanteda.textstats::textstat_proxy(...)
     10. quanteda.textstats:::make_na_matrix(...)
     11. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_dist.R:64:5): textstat_dist() returns NA for empty dfm ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_dist.R:64:4
     8. quanteda.textstats:::textstat_dist.dfm(mt, method = "canberra")
     9. quanteda.textstats::textstat_proxy(...)
     10. quanteda.textstats:::make_na_matrix(...)
     11. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_dist.R:68:5): textstat_dist() returns NA for empty dfm ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_dist.R:68:4
     8. quanteda.textstats:::textstat_dist.dfm(mt, method = "minkowski")
     9. quanteda.textstats::textstat_proxy(...)
     10. quanteda.textstats:::make_na_matrix(...)
     11. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:315:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:315:4
     2. quanteda.textstats:::make_na_matrix(...)
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:316:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:316:4
     2. quanteda.textstats:::make_na_matrix(...)
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:317:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:317:4
     2. quanteda.textstats:::make_na_matrix(...)
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:322:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:322:4
     2. quanteda.textstats:::make_na_matrix(...)
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:323:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:323:4
     2. quanteda.textstats:::make_na_matrix(...)
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:324:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda.textstats::textstat_proxy(...) test-textstat_proxy.R:324:4
     2. quanteda.textstats:::make_na_matrix(...)
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:90:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_simil.R:90:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "correlation")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:94:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:94:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "cosine")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:99:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_simil.R:99:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "jaccard")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:104:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_simil.R:104:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "ejaccard")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:109:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equivalent(...) test-textstat_simil.R:109:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "dice")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:114:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:114:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "edice")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:119:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:119:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "hamman")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:124:5): textstat_simil() returns NA for zero-variance documents ──
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:124:4
     6. quanteda.textstats:::textstat_simil.dfm(mt, method = "simple matching")
     7. quanteda.textstats::textstat_proxy(...)
     8. quanteda.textstats:::make_na_matrix(...)
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:495:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:495:4
     5. quanteda.textstats:::make_na_matrix(c(5, 4), row = 2L:3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:503:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:503:4
     5. quanteda.textstats:::make_na_matrix(c(5, 4), col = 3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:511:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:511:4
     5. quanteda.textstats:::make_na_matrix(c(5, 4), col = 1L:2L, row = 2L:3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:518:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:518:4
     5. quanteda.textstats:::make_na_matrix(c(5, 4), 2L:3L, c(1L:2L))
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:525:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:525:4
     5. quanteda.textstats:::make_na_matrix(c(5, 4), 1L, 3L)
     6. Matrix::sparseMatrix(...)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-textstat_summary.R:11:5): textstat_summary method works ─────────
     Error: error in evaluating the argument 'x' in selecting a method for function 'as.list': error in evaluating the argument 'x' in selecting a method for function 'which': Illegal argument. (U_ILLEGAL_ARGUMENT_ERROR, context=`^\p{emoji_presentation}+$`)
     Backtrace:
     █
     1. ├─quanteda.textstats::textstat_summary(corp) test-textstat_summary.R:11:4
     2. ├─quanteda.textstats:::textstat_summary.corpus(corp)
     3. │ └─quanteda.textstats:::summarize(as.corpus(x), ...)
     4. │ ├─quanteda::convert(...)
     5. │ ├─quanteda::dfm_lookup(...)
     6. │ └─quanteda:::dfm_lookup.dfm(...)
     7. │ └─quanteda:::pattern2list(...)
     8. │ └─quanteda::pattern2id(...)
     9. │ ├─base::as.list(search_regex(pattern[[i]], types_search, case_insensitive))
     10. │ └─quanteda:::search_regex(pattern[[i]], types_search, case_insensitive)
     11. │ ├─base::which(stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive))
     12. │ └─stringi::stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive)
     13. ├─base::.handleSimpleError(...)
     14. │ └─base:::h(simpleError(msg, call))
     15. └─base::.handleSimpleError(...)
     16. └─base:::h(simpleError(msg, call))
    
     [ FAIL 1 | WARN 23 | SKIP 5 | PASS 475 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-solaris-x86