Running 'testthat.R' [36s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(BayesMallows)
  > test_check("BayesMallows")
  == Skipped tests ===============================================================
  * On CRAN (1)
  
  == Failed tests ================================================================
  -- Error (test-classes_compute_consensus_posterior.R:39: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_posterior_intervals_rho(...) test-classes_compute_consensus_posterior.R:39:0
   2.   \-BayesMallows:::smc_processing(output = output, colnames = colnames)
   3.     \-stats::reshape(...)
   4.       \-stats:::reshapeLong(...)
  -- Error (test-smc_compute_rho_consensus.R:43: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(...) test-smc_compute_rho_consensus.R:43:0
   2.   \-BayesMallows:::smc_processing(output = output, colnames = colnames)
   3.     \-stats::reshape(...)
   4.       \-stats:::reshapeLong(...)
  -- Error (test-smc_mallows_complete_rankings.R:76: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_posterior_intervals_rho(...) test-smc_mallows_complete_rankings.R:76:0
   2.   \-BayesMallows:::smc_processing(output = output, colnames = colnames)
   3.     \-stats::reshape(...)
   4.       \-stats:::reshapeLong(...)
  -- Error (test-smc_mallows_partial_rankings.R:153:3): Runs with unif kernel ----
  Error in `if (idvar %in% names(data)) {
      ids <- data[, idvar]
  }`: argument is of length zero
  Backtrace:
      x
   1. +-testthat::expect_s3_class(...) test-smc_mallows_partial_rankings.R:153:2
   2. | \-testthat::quasi_label(enquo(object), arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-BayesMallows::plot_rho_posterior(...)
   5.   \-BayesMallows:::smc_processing(output = output, colnames = colnames)
   6.     \-stats::reshape(...)
   7.       \-stats:::reshapeLong(...)
  -- Error (test-smc_mallows_partial_rankings.R:219: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(...) test-smc_mallows_partial_rankings.R:219:2
   2.   \-BayesMallows:::smc_processing(output = output, colnames = colnames)
   3.     \-stats::reshape(...)
   4.       \-stats:::reshapeLong(...)
  
  [ FAIL 5 | WARN 0 | SKIP 1 | PASS 422 ]
  Error: Test failures
  Execution halted