- using R version 4.0.4 Patched (2021-02-17 r80032)
- using platform: i386-pc-solaris2.10 (32-bit)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘quanteda/DESCRIPTION’ ... OK
- this is package ‘quanteda’ version ‘2.1.2’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘quanteda’ can be installed ... OK
- checking installed package size ... OK
- checking package directory ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [60s/72s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... NOTE
Note: found 3 marked UTF-8 strings
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [10s/11s] 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
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [274s/257s] ERROR
Running ‘spelling.R’
Running ‘testthat.R’ [272s/254s]
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)
══ 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in ‘inst/doc’ ... OK
- checking re-building of vignette outputs ... WARNING
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
- checking PDF version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs, 1 WARNING, 1 NOTE