Running 'testthat.R' [79s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BayesMallows)
  > test_check("BayesMallows")
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 438 ]
  
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error (test-classes_compute_consensus_posterior.R:117:1): (code run outside of `test_that()`) --
  Error in `if (idvar %in% names(data)) {
      ids <- data[, idvar]
  }`: argument is of length zero
  Backtrace:
      x
   1. \-BayesMallows::compute_rho_consensus(...) at test-classes_compute_consensus_posterior.R:117:0
   2.   +-BayesMallows::compute_consensus(...)
   3.   \-BayesMallows:::compute_consensus.consensus_SMCMallows(...)
   4.     +-BayesMallows:::.compute_map_consensus(model_fit, burnin = burnin)
   5.     \-BayesMallows:::.compute_map_consensus.consensus_SMCMallows(...)
   6.       \-stats::reshape(...)
   7.         \-stats reshapeLong(...)
  -- Error (test-smc_compute_rho_consensus.R:49:1): (code run outside of `test_that()`) --
  Error in `if (idvar %in% names(data)) {
      ids <- data[, idvar]
  }`: argument is of length zero
  Backtrace:
      x
   1. \-BayesMallows::compute_rho_consensus(...) at test-smc_compute_rho_consensus.R:49:0
   2.   +-BayesMallows::compute_consensus(...)
   3.   \-BayesMallows:::compute_consensus.consensus_SMCMallows(...)
   4.     +-BayesMallows:::.compute_map_consensus(model_fit, burnin = burnin)
   5.     \-BayesMallows:::.compute_map_consensus.consensus_SMCMallows(...)
   6.       \-stats::reshape(...)
   7.         \-stats reshapeLong(...)
  -- Error (test-smc_mallows_complete_rankings.R:84:1): (code run outside of `test_that()`) --
  Error in `if (idvar %in% names(data)) {
      ids <- data[, idvar]
  }`: argument is of length zero
  Backtrace:
      x
   1. \-BayesMallows::compute_rho_consensus(...) at test-smc_mallows_complete_rankings.R:84:0
   2.   +-BayesMallows::compute_consensus(...)
   3.   \-BayesMallows:::compute_consensus.consensus_SMCMallows(...)
   4.     +-BayesMallows:::.compute_map_consensus(model_fit, burnin = burnin)
   5.     \-BayesMallows:::.compute_map_consensus.consensus_SMCMallows(...)
   6.       \-stats::reshape(...)
   7.         \-stats reshapeLong(...)
  -- Error (test-smc_mallows_partial_rankings.R:224:3): Specific example results are OK --
  Error in `if (idvar %in% names(data)) {
      ids <- data[, idvar]
  }`: argument is of length zero
  Backtrace:
      x
   1. \-BayesMallows::compute_rho_consensus(...) at test-smc_mallows_partial_rankings.R:224:2
   2.   +-BayesMallows::compute_consensus(...)
   3.   \-BayesMallows:::compute_consensus.consensus_SMCMallows(...)
   4.     +-BayesMallows:::.compute_map_consensus(model_fit, burnin = burnin)
   5.     \-BayesMallows:::.compute_map_consensus.consensus_SMCMallows(...)
   6.       \-stats::reshape(...)
   7.         \-stats reshapeLong(...)
  
  [ FAIL 4 | WARN 0 | SKIP 1 | PASS 438 ]
  Error: Test failures
  Execution halted