Package: newsmap Check: tests New result: ERROR Running ‘testthat.R’ [21s/21s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > require(testthat) Loading required package: testthat > test_check("newsmap") Loading required package: newsmap [ FAIL 2 | WARN 0 | SKIP 0 | PASS 138 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-textmodel.R:214:5'): coef() and dictionary() are working ───── `coef(map, select = character())` threw an error with unexpected message. Expected match: "The length of select must be between 1 and 16" Actual message: "The length of select must be between 1 and 17\n" Backtrace: ▆ 1. ├─testthat::expect_error(coef(map, select = character()), "The length of select must be between 1 and 16") at test-textmodel.R:214:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─stats::coef(map, select = character()) 7. └─newsmap:::coef.textmodel_newsmap(map, select = character()) 8. └─quanteda::check_character(...) 9. └─quanteda:::check_length(x, min_len, max_len, arg) ── Failure ('test-textmodel.R:219:5'): coef() and dictionary() are working ───── length(lis1) not equal to 16. 1/1 mismatches [1] 17 - 16 == 1 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 138 ] Error: Test failures Execution halted Package: wordmap Check: tests New result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [17s/17s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > require(testthat) Loading required package: testthat > test_check("wordmap") Loading required package: wordmap [ FAIL 2 | WARN 0 | SKIP 0 | PASS 117 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-textmodel.R:304:5'): coef() and dictionary() are working ───── `coef(map, select = character())` threw an error with unexpected message. Expected match: "The length of select must be between 1 and 16" Actual message: "The length of select must be between 1 and 17\n" Backtrace: ▆ 1. ├─testthat::expect_error(coef(map, select = character()), "The length of select must be between 1 and 16") at test-textmodel.R:304:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─stats::coef(map, select = character()) 7. └─wordmap:::coef.textmodel_wordmap(map, select = character()) 8. └─quanteda::check_character(...) 9. └─quanteda:::check_length(x, min_len, max_len, arg) ── Failure ('test-textmodel.R:309:5'): coef() and dictionary() are working ───── length(lis1) not equal to 16. 1/1 mismatches [1] 17 - 16 == 1 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 117 ] Error: Test failures Execution halted