Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [16s/26s]
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")
  Package version: 2.1.2
  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
  
  > library("quanteda.textmodels")
  
  Attaching package: 'quanteda.textmodels'
  
  The following object is masked from 'package:quanteda':
  
      data_dfm_lbgexample
  
  > library("quanteda.textplots")
  
  Attaching package: 'quanteda.textplots'
  
  The following object is masked from 'package:quanteda.textmodels':
  
      textplot_scale1d
  
  The following objects are masked from 'package:quanteda':
  
      as.igraph, as.network, textplot_keyness, textplot_network,
      textplot_wordcloud, textplot_xray
  
  > quanteda_options(reset = TRUE)
  > 
  > test_check("quanteda.textplots")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● For interactive visual inspection only (2)
  ● On CRAN (2)
  ● On Linux (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-textplot_network.R:6:5): test textplot_network ──────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-textplot_network.R:6:4
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─quanteda.textplots::textplot_network(...)
   10. └─quanteda.textplots:::textplot_network.fcm(...)
   11.   ├─quanteda.textplots::as.network(...)
   12.   └─quanteda.textplots:::as.network.fcm(...)
   13.     └─network::network(...)
   14.       ├─network::as.network(...)
   15.       └─network::as.network.matrix(...)
   16.         └─network::network.initialize(...)
   17.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-textplot_network.R:22:5): test textplot_network works with vectorlized argument ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
       █
    1. ├─testthat::expect_silent(...) test-textplot_network.R:22:4
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat:::.capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─quanteda.textplots::textplot_network(...)
   10. └─quanteda.textplots:::textplot_network.fcm(...)
   11.   ├─quanteda.textplots::as.network(...)
   12.   └─quanteda.textplots:::as.network.fcm(...)
   13.     └─network::network(...)
   14.       ├─network::as.network(...)
   15.       └─network::as.network.matrix(...)
   16.         └─network::network.initialize(...)
   17.           └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-textplot_network.R:84:5): as.network.fcm works ──────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. ├─quanteda.textplots::as.network(mat, min_freq = 1, omit_isolated = FALSE) test-textplot_network.R:84:4
   2. └─quanteda.textplots:::as.network.fcm(mat, min_freq = 1, omit_isolated = FALSE)
   3.   └─network::network(...)
   4.     ├─network::as.network(...)
   5.     └─network::as.network.matrix(...)
   6.       └─network::network.initialize(...)
   7.         └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-textplot_network.R:94:5): as.network.fcm works with window ──────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. ├─quanteda.textplots::as.network(mat, min_freq = 1, omit_isolated = FALSE) test-textplot_network.R:94:4
   2. └─quanteda.textplots:::as.network.fcm(mat, min_freq = 1, omit_isolated = FALSE)
   3.   └─network::network(...)
   4.     ├─network::as.network(...)
   5.     └─network::as.network.matrix(...)
   6.       └─network::network.initialize(...)
   7.         └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  
  [ FAIL 4 | WARN 0 | SKIP 6 | PASS 59 ]
  Error: Test failures
  Execution halted