Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(exams2ilias)
  > 
  > test_check("exams2ilias")
    adding: lm_ilias_qpl/ (stored 0%)
    adding: lm_ilias_qpl/lm_ilias_qpl.xml (deflated 48%)
    adding: lm_ilias_qpl/lm_ilias_qti.xml (deflated 57%)
    adding: swiss_ilias_qpl/ (stored 0%)
    adding: swiss_ilias_qpl/swiss_ilias_qpl.xml (deflated 47%)
    adding: swiss_ilias_qpl/swiss_ilias_qti.xml (deflated 72%)
    adding: vowels_ilias_qpl/ (stored 0%)
    adding: vowels_ilias_qpl/vowels_ilias_qpl.xml (deflated 47%)
    adding: vowels_ilias_qpl/vowels_ilias_qti.xml (deflated 91%)
    adding: cloze_08_mixed_qpl/ (stored 0%)
    adding: cloze_08_mixed_qpl/cloze_08_mixed_qpl.xml (deflated 47%)
    adding: cloze_08_mixed_qpl/cloze_08_mixed_qti.xml (deflated 71%)
    adding: cloze_chars_qpl/ (stored 0%)
    adding: cloze_chars_qpl/cloze_chars_qpl.xml (deflated 47%)
    adding: cloze_chars_qpl/cloze_chars_qti.xml (deflated 69%)
    adding: mchoice_math_qpl/ (stored 0%)
    adding: mchoice_math_qpl/mchoice_math_qpl.xml (deflated 47%)
    adding: mchoice_math_qpl/mchoice_math_qti.xml (deflated 81%)
    adding: stats_cloze_qpl/ (stored 0%)
    adding: stats_cloze_qpl/stats_cloze_qpl.xml (deflated 47%)
    adding: stats_cloze_qpl/stats_cloze_qti.xml (deflated 80%)
    adding: stats_schoice_qpl/ (stored 0%)
    adding: stats_schoice_qpl/stats_schoice_qpl.xml (deflated 47%)
    adding: stats_schoice_qpl/stats_schoice_qti.xml (deflated 72%)
    adding: stats_mchoice_qpl/ (stored 0%)
    adding: stats_mchoice_qpl/stats_mchoice_qpl.xml (deflated 47%)
    adding: stats_mchoice_qpl/stats_mchoice_qti.xml (deflated 81%)
    adding: stats_num_qpl/ (stored 0%)
    adding: stats_num_qpl/stats_num_qpl.xml (deflated 47%)
    adding: stats_num_qpl/stats_num_qti.xml (deflated 67%)
    adding: stats_string_qpl/ (stored 0%)
    adding: stats_string_qpl/stats_string_qpl.xml (deflated 48%)
    adding: stats_string_qpl/stats_string_qti.xml (deflated 70%)
    adding: stats_cloze_qpl/ (stored 0%)
    adding: stats_cloze_qpl/stats_cloze_qpl.xml (deflated 47%)
    adding: stats_cloze_qpl/stats_cloze_qti.xml (deflated 80%)
    adding: stats_schoice_qpl/ (stored 0%)
    adding: stats_schoice_qpl/stats_schoice_qpl.xml (deflated 48%)
    adding: stats_schoice_qpl/stats_schoice_qti.xml (deflated 72%)
    adding: stats_mchoice_qpl/ (stored 0%)
    adding: stats_mchoice_qpl/stats_mchoice_qpl.xml (deflated 47%)
    adding: stats_mchoice_qpl/stats_mchoice_qti.xml (deflated 81%)
    adding: stats_num_qpl/ (stored 0%)
    adding: stats_num_qpl/stats_num_qpl.xml (deflated 47%)
    adding: stats_num_qpl/stats_num_qti.xml (deflated 67%)
    adding: stats_string_qpl/ (stored 0%)
    adding: stats_string_qpl/stats_string_qpl.xml (deflated 47%)
    adding: stats_string_qpl/stats_string_qti.xml (deflated 69%)
    adding: stats_examples_qpl/ (stored 0%)
    adding: stats_examples_qpl/stats_examples_qpl.xml (deflated 67%)
    adding: stats_examples_qpl/stats_examples_qti.xml (deflated 87%)
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 52 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-exams2ilias.R:143:3'): single-choice export uses matching response identifiers and additive scoring ──
  Error in `file(con, "w")`: cannot open the connection
  Backtrace:
      ▆
   1. └─exams2ilias::exams2ilias(...) at test-exams2ilias.R:143:3
   2.   └─exams2ilias:::ilias_exams2qti12(...)
   3.     └─exams::exams2qti12(...)
   4.       └─exams::xexams(...)
   5.         └─driver$transform(exm[[i]][[j]])
   6.           └─exams (local) apply_pandoc_on_list(what, from = x$metainfo$markup, ...)
   7.             └─exams:::pandoc(...)
   8.               └─base::writeLines(x, infile)
   9.                 └─base::file(con, "w")
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 52 ]
  Error:
  ! Test failures.
  Execution halted