Running ‘testthat.R’ [28s/94s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(checkmate)
  > library(coalitions)
  > 
  > test_check("coalitions")
  ── 1. Error: as_survey works correctly (@test-basic-functions.R#10)  ───────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: expect_subset(colnames(forsa), c("party", "percent", "votes")) at testthat/test-basic-functions.R:10
  2: checkSubset(x, choices, empty.ok, fmatch)
  3: qassert(empty.ok, "B1")
  
  ── 2. Error: Pooling works as expected (@test-pooling.R#4)  ────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'language'
  1: .survey_sample %>% pool_surveys(last_date = max(tidyr::unnest(.survey_sample)$date)) at testthat/test-pooling.R:4
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: pool_surveys(., last_date = max(tidyr::unnest(.survey_sample)$date))
  10: assert_date(last_date)
  11: checkDate(x, lower, upper, any.missing, all.missing, len, min.len, max.len, unique, 
         null.ok)
  12: qassert(null.ok, "B1")
  
  ── 3. Error: workflow stable (@test-workflow.R#53)  ────────────────────────────
  Evaluation error: STRING_ELT() can only be applied to a 'character vector', not a 'builtin'.
  1: survey %>% mutate(majorities = map(seats, have_majority)) at testthat/test-workflow.R:53
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: mutate(., majorities = map(seats, have_majority))
  10: mutate.tbl_df(., majorities = map(seats, have_majority))
  11: mutate_impl(.data, dots)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 74 SKIPPED: 0 FAILED: 3
  1. Error: as_survey works correctly (@test-basic-functions.R#10) 
  2. Error: Pooling works as expected (@test-pooling.R#4) 
  3. Error: workflow stable (@test-workflow.R#53) 
  
  Error: testthat unit tests failed
  Execution halted