Running ‘testthat.R’ [26s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  quanteda version 0.9.8.5
  
  
  Attaching package: 'quanteda'
  
  The following object is masked from 'package:base':
  
      sample
  
  > 
  > test_check("quanteda")
  OMP: Warning #96: Cannot form a team with 3 threads, using 2 instead.
  OMP: Hint: Consider unsetting KMP_ALL_THREADS and OMP_THREAD_LIMIT (if either is set).
  Creating a dfm from a corpus ...
     ... lowercasing
     ... tokenizing
     ... indexing documents: 29 documents
     ... indexing features: 6,276 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 29 x 6 sparse dfm
     ... complete. 
  Elapsed time: 0.465 seconds.
  Creating a dfm from a corpus ...
     ... lowercasing
     ... tokenizing
     ... indexing documents: 29 documents
     ... indexing features: 6,276 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 29 x 6275 sparse dfm
     ... complete. 
  Elapsed time: 0.286 seconds.
  Creating a dfm from a corpus ...
     ... lowercasing
     ... tokenizing
     ... indexing documents: 29 documents
     ... indexing features: 6,276 feature types
     ... created a 29 x 6276 sparse dfm
     ... complete. 
  Elapsed time: 0.17 seconds.
  applying a dictionary consisting of 6 keys
  
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 6 sparse dfm
     ... complete. 
  Elapsed time: 0.04 seconds.
  
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 15 sparse dfm
     ... complete. 
  Elapsed time: 0.093 seconds.
  
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 6 sparse dfm
     ... complete. 
  Elapsed time: 0.044 seconds.
  
     ... indexing documents: 2 documents
     ... indexing features: 14 feature types
     ... applying a dictionary consisting of 6 keys
     ... created a 2 x 15 sparse dfm
     ... complete. 
  Elapsed time: 0.053 seconds.
  applying a dictionary consisting of 6 keys
  
     ... lowercasing
     ... tokenizing
     ... indexing documents: 1 document
     ... indexing features: 10 feature types
     ... created a 1 x 10 sparse dfm
     ... complete. 
  Elapsed time: 0.01 seconds.
  
     ... lowercasing
     ... tokenizing
     ... indexing documents: 1 document
     ... indexing features: 10 feature types
     ... stemming features (English)
     ... created a 1 x 10 sparse dfm
     ... complete. 
  Elapsed time: 0.06 seconds.
  
     ... lowercasing
     ... tokenizing
     ... indexing documents: 1 document
     ... indexing features: 10 feature types
     ... removed 4 features, from 174 supplied (glob) feature types
     ... created a 1 x 6 sparse dfm
     ... complete. 
  Elapsed time: 0.017 seconds.
  
     ... lowercasing
     ... tokenizing
     ... indexing documents: 1 document
     ... indexing features: 10 feature types
     ... removed 4 features, from 174 supplied (glob) feature types
     ... stemming features (English)
     ... created a 1 x 6 sparse dfm
     ... complete. 
  Elapsed time: 0.242 seconds.
  applying a dictionary consisting of 5 keys
  applying a dictionary consisting of 5 keys
  applying a dictionary consisting of 5 keys
  applying a dictionary consisting of 5 keys
  applying a dictionary consisting of 5 keys
  applying a dictionary consisting of 5 keys
  Removing features occurring fewer than 7 times: 5231
  Removing features occurring fewer than 0.001 * 6276 = 6.276 times: 5231
  Removing features occurring in fewer than 0.05 * 29 = 1.45 documents: 3199
  Removing features occurring in fewer than 2 documents: 3199
  Removing features occurring fewer than 0.001 * 6276 = 6.276 times: 5231
  Removing features occurring fewer than 7 times: 5231
  Note: converting sparsity into minDoc = 1 - 0.95 = 0.05 .
  Removing features occurring in fewer than 0.05 * 29 = 1.45 documents: 3199
  Note: converting sparsity into minDoc = 1 - 0.95 = 0.05 .
  Removing features occurring in fewer than 0.05 * 29 = 1.45 documents: 3199
  Removing features occurring in fewer than 0.05 * 29 = 1.45 documents: 3199
  Removing features occurring in fewer than 0.05 * 29 = 1.45 documents: 3199
  [1] "testngrams"
  tokenizedText object from 2 documents.
  Component 1 :
  [1] "insurgents_killed" "killed_in"         "in_ongoing"       
  [4] "ongoing_fighting" 
  
  Component 2 :
  [1] "insurgents_killed" "killed_in"         "in_ongoing"       
  [4] "ongoing_fighting" 
  
  List of 2
   $ : chr [1:4] "insurgents_killed" "killed_in" "in_ongoing" "ongoing_fighting"
   $ : chr [1:4] "insurgents_killed" "killed_in" "in_ongoing" "ongoing_fighting"
   - attr(*, "class")= chr [1:2] "tokenizedTexts" "list"
   - attr(*, "what")= chr "word"
   - attr(*, "ngrams")= int 1
   - attr(*, "concatenator")= chr ""
  [1] "skipgrams"
  List of 2
   $ : chr [1:4] "insurgents_killed" "killed_in" "in_ongoing" "ongoing_fighting"
   $ : chr [1:4] "insurgents_killed" "killed_in" "in_ongoing" "ongoing_fighting"
   - attr(*, "class")= chr [1:2] "tokenizedTexts" "list"
   - attr(*, "what")= chr "word"
   - attr(*, "ngrams")= int 1
   - attr(*, "concatenator")= chr ""
  1. Failure: test plot.kwic facet order parameter (@testPlots.R#70) -------------
  all(plot_docnames[order(plot_docnames)] == plot_docnames) isn't false.
  
  
  2. Failure: test plot.kwic keeps order of keywords passed (@testPlots.R#81) ----
  as.character(unique(ggplot2::ggplot_build(p)$panel$layout$keyword)) not equal to c("people", "american").
  Lengths differ: 0 vs 2
  
  
  Loading required package: proxy
  
  Attaching package: 'proxy'
  
  The following object is masked from 'package:quanteda':
  
      as.matrix
  
  The following objects are masked from 'package:stats':
  
      as.dist, dist
  
  The following object is masked from 'package:base':
  
      as.matrix
  
  3. Error: test remote text file (@testTextfile.R#146) --------------------------
  Not Found (HTTP 404).
  1: expect_equal(texts(textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/fox/fox.txt")), 
         c(fox.txt = "The quick brown fox jumps over the lazy dog.")) at testthat/testTextfile.R:146
  2: compare(object, expected, ...)
  3: texts(textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/fox/fox.txt"))
  4: textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/fox/fox.txt")
  5: textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/fox/fox.txt")
  6: listMatchingFiles(file, ignoreMissing = ignoreMissingFiles)
  7: unlist(lapply(x, function(x) listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound)))
  8: lapply(x, function(x) listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound))
  9: FUN(X[[i]], ...)
  10: listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound)
  11: downloadRemote(i, ignoreMissing = ignoreMissing)
  12: httr::stop_for_status(r)
  
  4. Error: test remote csv file (@testTextfile.R#159) ---------------------------
  Not Found (HTTP 404).
  1: expect_equal(texts(textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/csv/test.csv", 
         textField = "text")), c(test.csv.1 = "Lorem ipsum.", test.csv.2 = "Dolor sit")) at testthat/testTextfile.R:159
  2: compare(object, expected, ...)
  3: texts(textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/csv/test.csv", 
         textField = "text"))
  4: textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/csv/test.csv", 
         textField = "text")
  5: textfile("https://raw.githubusercontent.com/kbenoit/quanteda/master/tests/data/csv/test.csv", 
         textField = "text")
  6: listMatchingFiles(file, ignoreMissing = ignoreMissingFiles)
  7: unlist(lapply(x, function(x) listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound)))
  8: lapply(x, function(x) listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound))
  9: FUN(X[[i]], ...)
  10: listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound)
  11: downloadRemote(i, ignoreMissing = ignoreMissing)
  12: httr::stop_for_status(r)
  
  5. Error: test remote zip file (@testTextfile.R#169) ---------------------------
  Not Found (HTTP 404).
  1: expect_equal(length(texts(textfile("https://github.com/kbenoit/quanteda/raw/master/inst/extdata/encodedTextFiles.zip"))), 
         41) at testthat/testTextfile.R:169
  2: compare(object, expected, ...)
  3: texts(textfile("https://github.com/kbenoit/quanteda/raw/master/inst/extdata/encodedTextFiles.zip"))
  4: textfile("https://github.com/kbenoit/quanteda/raw/master/inst/extdata/encodedTextFiles.zip")
  5: textfile("https://github.com/kbenoit/quanteda/raw/master/inst/extdata/encodedTextFiles.zip")
  6: listMatchingFiles(file, ignoreMissing = ignoreMissingFiles)
  7: unlist(lapply(x, function(x) listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound)))
  8: lapply(x, function(x) listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound))
  9: FUN(X[[i]], ...)
  10: listMatchingFile(x, ignoreMissing = ignoreMissing, lastRound = lastRound)
  11: downloadRemote(i, ignoreMissing = ignoreMissing)
  12: httr::stop_for_status(r)
  
  testthat results ================================================================
  OK: 236 SKIPPED: 1 FAILED: 5
  1. Failure: test plot.kwic facet order parameter (@testPlots.R#70) 
  2. Failure: test plot.kwic keeps order of keywords passed (@testPlots.R#81) 
  3. Error: test remote text file (@testTextfile.R#146) 
  4. Error: test remote csv file (@testTextfile.R#159) 
  5. Error: test remote zip file (@testTextfile.R#169) 
  
  Error: testthat unit tests failed
  Execution halted