CRAN Package Check Results for Package quanteda

Last updated on 2021-01-21 00:47:16 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.1.2 324.97 404.08 729.05 OK
r-devel-linux-x86_64-debian-gcc 2.1.2 229.31 304.66 533.97 OK
r-devel-linux-x86_64-fedora-clang 2.1.2 888.04 NOTE
r-devel-linux-x86_64-fedora-gcc 2.1.2 696.41 NOTE
r-devel-windows-ix86+x86_64 2.1.2 561.00 699.00 1260.00 NOTE
r-patched-linux-x86_64 2.1.2 269.79 386.21 656.00 OK
r-patched-solaris-x86 2.1.2 839.00 ERROR
r-release-linux-x86_64 2.1.2 269.30 389.98 659.28 OK
r-release-macos-x86_64 2.1.2 NOTE
r-release-windows-ix86+x86_64 2.1.2 644.00 855.00 1499.00 NOTE
r-oldrel-macos-x86_64 2.1.2 NOTE
r-oldrel-windows-ix86+x86_64 2.1.2 465.00 569.00 1034.00 NOTE

Check Details

Version: 2.1.2
Check: installed package size
Result: NOTE
     installed size is 17.0Mb
     sub-directories of 1Mb or more:
     R 1.1Mb
     libs 13.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64

Version: 2.1.2
Check: data for non-ASCII characters
Result: NOTE
     Note: found 3 marked UTF-8 strings
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: 2.1.2
Check: examples
Result: ERROR
    Running examples in ‘quanteda-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: corpus-class
    > ### Title: Base method extensions for corpus objects
    > ### Aliases: corpus-class is.corpus +.corpus c.corpus [.corpus
    > ### print.summary.corpus
    > ### Keywords: corpus internal
    >
    > ### ** Examples
    >
    > # concatenate corpus objects
    > corp1 <- corpus(data_char_ukimmig2010[1:2])
    > corp2 <- corpus(data_char_ukimmig2010[3:4])
    > corp3 <- corpus(data_char_ukimmig2010[5:6])
    > summary(c(corp1, corp2, corp3))
    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: summary ... stri_detect_regex -> .handleSimpleError -> h -> .handleSimpleError -> h
    Execution halted
Flavor: r-patched-solaris-x86

Version: 2.1.2
Check: tests
Result: ERROR
     Running ‘spelling.R’
     Running ‘testthat.R’ [245s/320s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > Sys.setenv("R_TESTS" = "")
     >
     > library(testthat)
     > 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 object is masked from 'package:utils':
    
     View
    
     >
     > Sys.setenv("_R_CHECK_LENGTH_1_CONDITION_" = TRUE)
     >
     > ops <- quanteda_options()
     > quanteda_options(reset = TRUE)
     >
     > test_check("quanteda")
     ══ Skipped tests ═══════════════════════════════════════════════════════════════
     ● For interactive visual inspection only (2)
     ● NEEDS TO BE FIXED (1)
     ● On CRAN (6)
     ● On Solaris (6)
     ● Skip until textstat_simil() has been corrected for empty dfms (1)
     ● Skipped because stats::chisq.test is wrong for small-value 2x2 tables (1)
     ● Until we resolve metadoc issues (1)
     ● defaults may have changed (1)
     ● ngrams disabled in new tokens() (1)
     ● not implemented yet (1)
     ● requires spacyr installation to work (1)
     ● skip until textstat_dist() works correctly for zero-variance documents (1)
     ● skipping test of option setting when quanteda is not attached (1)
     ● until all MA measures are made functional (1)
     ● until textstat_dist() works correctly for empty dfms (1)
     ● we no longer expect these to be the same (1)
    
     ══ Warnings ════════════════════════════════════════════════════════════════════
     ── Warning (test-corpus.R:376:5): corpus handles NA correctly (#1372, #1969) ───
     NA is replaced by empty string
     Backtrace:
     1. testthat::expect_true(!any(is.na(texts(corpus(txt))))) test-corpus.R:376:4
     6. quanteda:::corpus.character(txt)
     ── Warning (test-corpus.R:383:5): corpus handles NA correctly (#1372, #1969) ───
     NA is replaced by empty string
     Backtrace:
     1. testthat::expect_true(...) test-corpus.R:383:4
     6. quanteda:::corpus.data.frame(data.frame(text = txt, stringsAsFactors = FALSE))
     8. quanteda:::corpus.character(...)
     ── Warning (test-kwic.R:10:5): test attr(kwic, 'ntoken') with un-named texts ───
     NA is replaced by empty string
     Backtrace:
     1. quanteda::kwic(txt, "fox") test-kwic.R:10:4
     2. quanteda:::kwic.character(txt, "fox")
     5. quanteda:::corpus.character(x)
     ── Warning (test-textstat_proxy.R:318:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda::textstat_proxy(...) test-textstat_proxy.R:318:4
     2. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:319:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda::textstat_proxy(...) test-textstat_proxy.R:319:4
     2. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:320:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda::textstat_proxy(...) test-textstat_proxy.R:320:4
     2. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:325:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda::textstat_proxy(...) test-textstat_proxy.R:325:4
     2. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:326:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda::textstat_proxy(...) test-textstat_proxy.R:326:4
     2. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_proxy.R:327:5): use_na is working ────────────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. quanteda::textstat_proxy(...) test-textstat_proxy.R:327:4
     2. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     3. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:88: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:88:4
     6. quanteda:::textstat_simil.dfm(mt, method = "correlation")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:92: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:92:4
     6. quanteda:::textstat_simil.dfm(mt, method = "cosine")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:97: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:97:4
     6. quanteda:::textstat_simil.dfm(mt, method = "jaccard")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:102: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:102:4
     6. quanteda:::textstat_simil.dfm(mt, method = "ejaccard")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:107: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:107:4
     6. quanteda:::textstat_simil.dfm(mt, method = "dice")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:112: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:112:4
     6. quanteda:::textstat_simil.dfm(mt, method = "edice")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:117: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:117:4
     6. quanteda:::textstat_simil.dfm(mt, method = "hamman")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:122: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:122:4
     6. quanteda:::textstat_simil.dfm(mt, method = "simple matching")
     7. quanteda::textstat_proxy(...)
     8. quanteda:::make_na_matrix(dim(result), which(na1), which(na2))
     9. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:491:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:491:4
     5. quanteda:::make_na_matrix(c(5, 4), row = 2L:3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:499:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:499:4
     5. quanteda:::make_na_matrix(c(5, 4), col = 3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:507:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:507:4
     5. quanteda:::make_na_matrix(c(5, 4), col = 1L:2L, row = 2L:3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:514:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:514:4
     5. quanteda:::make_na_matrix(c(5, 4), 2L:3L, c(1L:2L))
     6. Matrix::sparseMatrix(...)
     ── Warning (test-textstat_simil.R:521:5): make_na_matrix is working ────────────
     'giveCsparse' has been deprecated; setting 'repr = "T"' for you
     Backtrace:
     1. testthat::expect_equal(...) test-textstat_simil.R:521:4
     5. quanteda:::make_na_matrix(c(5, 4), 1L, 3L)
     6. Matrix::sparseMatrix(...)
     ── Warning (test-tokens.R:523:5): tokens works as expected with NA, and blanks ──
     NA is replaced by empty string
     Backtrace:
     1. testthat::expect_equal(...) test-tokens.R:523:4
     6. quanteda:::tokens.character(c("one", NA, ""))
     10. quanteda:::corpus.character(x)
     ── Warning (test-tokens.R:527:5): tokens works as expected with NA, and blanks ──
     NA is replaced by empty string
     Backtrace:
     1. testthat::expect_equal(...) test-tokens.R:527:4
     6. quanteda:::tokens.character(c(NA, "one", ""))
     10. quanteda:::corpus.character(x)
     ── Warning (test-tokens.R:535:5): tokens works as expected with NA, and blanks ──
     NA is replaced by empty string
     Backtrace:
     1. testthat::expect_equal(...) test-tokens.R:535:4
     6. quanteda:::tokens.character(c(d1 = "", d2 = NA))
     10. quanteda:::corpus.character(x)
     ── Warning (test-tokens.R:539:5): tokens works as expected with NA, and blanks ──
     NA is replaced by empty string
     Backtrace:
     1. testthat::expect_equal(...) test-tokens.R:539:4
     6. quanteda:::tokens.character(c(d1 = NA, d2 = ""))
     10. quanteda:::corpus.character(x)
    
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (test-corpus_segment.R:55:5): corpus_segment works with blank before tag ──
     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. ├─base::summary(corp_seg) test-corpus_segment.R:55:4
     2. ├─base::summary(corp_seg)
     3. ├─quanteda:::summary.corpus(corp_seg)
     4. │ ├─quanteda::textstat_summary(...)
     5. │ └─quanteda:::textstat_summary.corpus(...)
     6. │ └─quanteda:::summarize(as.corpus(x), cache, ...)
     7. │ ├─quanteda::convert(...)
     8. │ ├─quanteda::dfm_lookup(...)
     9. │ └─quanteda:::dfm_lookup.dfm(...)
     10. │ └─quanteda:::pattern2list(...)
     11. │ └─quanteda::pattern2id(...)
     12. │ ├─base::as.list(search_regex(pattern[[i]], types_search, case_insensitive))
     13. │ └─quanteda:::search_regex(pattern[[i]], types_search, case_insensitive)
     14. │ ├─base::which(stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive))
     15. │ └─stringi::stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive)
     16. ├─base::.handleSimpleError(...)
     17. │ └─base:::h(simpleError(msg, call))
     18. └─base::.handleSimpleError(...)
     19. └─base:::h(simpleError(msg, call))
     ── Error (test-meta.R:126:5): adding summary info 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:::add_summary_metadata(corp) test-meta.R:126:4
     2. │ ├─base::summary(x, n = ndoc(x), showmeta = FALSE, ...)
     3. │ ├─base::summary(x, n = ndoc(x), showmeta = FALSE, ...)
     4. │ └─quanteda:::summary.corpus(x, n = ndoc(x), showmeta = FALSE, ...)
     5. │ ├─quanteda::textstat_summary(...)
     6. │ └─quanteda:::textstat_summary.corpus(...)
     7. │ └─quanteda:::summarize(as.corpus(x), cache, ...)
     8. │ ├─quanteda::convert(...)
     9. │ ├─quanteda::dfm_lookup(...)
     10. │ └─quanteda:::dfm_lookup.dfm(...)
     11. │ └─quanteda:::pattern2list(...)
     12. │ └─quanteda::pattern2id(...)
     13. │ ├─base::as.list(search_regex(pattern[[i]], types_search, case_insensitive))
     14. │ └─quanteda:::search_regex(pattern[[i]], types_search, case_insensitive)
     15. │ ├─base::which(stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive))
     16. │ └─stringi::stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive)
     17. ├─base::.handleSimpleError(...)
     18. │ └─base:::h(simpleError(msg, call))
     19. └─base::.handleSimpleError(...)
     20. └─base:::h(simpleError(msg, call))
     ── Error (test-meta.R:181:5): adding extended summary information 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:::add_summary_metadata(corp, extended = TRUE) test-meta.R:181:4
     2. │ ├─base::summary(x, n = ndoc(x), showmeta = FALSE, ...)
     3. │ ├─base::summary(x, n = ndoc(x), showmeta = FALSE, ...)
     4. │ └─quanteda:::summary.corpus(x, n = ndoc(x), showmeta = FALSE, ...)
     5. │ ├─quanteda::textstat_summary(...)
     6. │ └─quanteda:::textstat_summary.corpus(...)
     7. │ └─quanteda:::summarize(as.corpus(x), cache, ...)
     8. │ ├─quanteda::convert(...)
     9. │ ├─quanteda::dfm_lookup(...)
     10. │ └─quanteda:::dfm_lookup.dfm(...)
     11. │ └─quanteda:::pattern2list(...)
     12. │ └─quanteda::pattern2id(...)
     13. │ ├─base::as.list(search_regex(pattern[[i]], types_search, case_insensitive))
     14. │ └─quanteda:::search_regex(pattern[[i]], types_search, case_insensitive)
     15. │ ├─base::which(stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive))
     16. │ └─stringi::stri_detect_regex(types_search, pattern, case_insensitive = case_insensitive)
     17. ├─base::.handleSimpleError(...)
     18. │ └─base:::h(simpleError(msg, call))
     19. └─base::.handleSimpleError(...)
     20. └─base:::h(simpleError(msg, call))
     ── Failure (test-nfunctions.R:6:5): test nsentence ─────────────────────────────
     nsentence(txt) not identical to c(doc1 = 2L, doc2 = 2L).
     1/2 mismatches
     [1] 4 - 2 == 2
     ── Failure (test-nfunctions.R:7:5): test nsentence ─────────────────────────────
     nsentence(corpus(txt)) not identical to c(doc1 = 2L, doc2 = 2L).
     1/2 mismatches
     [1] 4 - 2 == 2
     ── Failure (test-nfunctions.R:8:5): test nsentence ─────────────────────────────
     nsentence(tokens(txt, what = "sentence")) not identical to c(doc1 = 2L, doc2 = 2L).
     1/2 mismatches
     [1] 4 - 2 == 2
     ── 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::textstat_summary(corp, cache = FALSE) test-textstat_summary.R:11:4
     2. ├─quanteda:::textstat_summary.corpus(corp, cache = FALSE)
     3. │ └─quanteda:::summarize(as.corpus(x), cache, ...)
     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 7 | WARN 26 | SKIP 27 | PASS 3017 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-solaris-x86

Version: 2.1.2
Check: re-building of vignette outputs
Result: WARN
    Error(s) in re-building vignettes:
     ...
    --- re-building ‘quickstart.Rmd’ using rmarkdown
    Warning in engine$weave(file, quiet = quiet, encoding = enc) :
     Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
    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 object is masked from 'package:utils':
    
     View
    
    Quitting from lines 74-76 (quickstart.Rmd)
    Error: processing vignette 'quickstart.Rmd' failed with diagnostics:
    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}+$`)
    --- failed re-building ‘quickstart.Rmd’
    
    SUMMARY: processing the following file failed:
     ‘quickstart.Rmd’
    
    Error: Vignette re-building failed.
    Execution halted
Flavor: r-patched-solaris-x86