Running 'spelling.R' [0s/0s]
  Running 'testthat.R' [190s/185s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(quanteda)
  Package version: 1.5.1
  Parallel computing: 2 of 32 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")
  -- 1. Error: as.igraph.fcm works with window (@test-fcm.R#285)  ----------------
  the condition has length > 1
  Backtrace:
    1. testthat::expect_silent(as.igraph(mat, min_freq = 3, omit_isolated = TRUE))
   10. quanteda:::as.igraph.fcm(mat, min_freq = 3, omit_isolated = TRUE)
   11. igraph::graph_from_adjacency_matrix(x, ...)
   12. igraph:::graph.adjacency.sparse(...)
   13. igraph::graph(n = vc, edges, directed = (mode == "directed"))
  
  -- 2. Error: test textplot_network (@test-textplot_network.R#7)  ---------------
  the condition has length > 1
  Backtrace:
    1. testthat::expect_silent(...)
   10. quanteda:::textplot_network.fcm(...)
   12. sna::gplot.layout.fruchtermanreingold(net, NULL)
   13. sna::symmetrize(d, rule = "weak", return.as.edgelist = TRUE)
   14. sna::as.edgelist.sna(mats)
  
  -- 3. Error: test textplot_network works with vectorlized argument (@test-textpl
  the condition has length > 1
  Backtrace:
    1. testthat::expect_silent(...)
   10. quanteda:::textplot_network.fcm(...)
   12. sna::gplot.layout.fruchtermanreingold(net, NULL)
   13. sna::symmetrize(d, rule = "weak", return.as.edgelist = TRUE)
   14. sna::as.edgelist.sna(mats)
  
  -- 4. Error: test textplot_network font-selection (@test-textplot_network.R#38) 
  the condition has length > 1
  Backtrace:
    1. testthat::expect_silent(...)
   10. quanteda:::textplot_network.fcm(testfcm, offset = 0.1, vertex_labelfont = "serif")
   12. sna::gplot.layout.fruchtermanreingold(net, NULL)
   13. sna::symmetrize(d, rule = "weak", return.as.edgelist = TRUE)
   14. sna::as.edgelist.sna(mats)
  
  == testthat results  ===========================================================
  [ OK: 2935 | SKIPPED: 18 | WARNINGS: 140 | FAILED: 4 ]
  1. Error: as.igraph.fcm works with window (@test-fcm.R#285) 
  2. Error: test textplot_network (@test-textplot_network.R#7) 
  3. Error: test textplot_network works with vectorlized argument (@test-textplot_network.R#22) 
  4. Error: test textplot_network font-selection (@test-textplot_network.R#38) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") :
    unable to translate '<U+5B57>' to native encoding
  2: In parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") :
    unable to translate '<U+98DB><U+6A5F>' to native encoding
  3: In parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") :
    unable to translate '<U+6587><U+66F8><U+FF11>' to native encoding
  4: In parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") :
    unable to translate '<U+6587><U+66F8><U+FF12>' to native encoding
  5: In parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") :
    unable to translate '<U+6587><U+66F8><U+FF11>' to native encoding
  6: In parse(con, n = -1, srcfile = srcfile, encoding = "UTF-8") :
    unable to translate '<U+6587><U+66F8><U+FF12>' to native encoding
  Execution halted