Running 'test-all.R' [3s/5s]
Running the tests in 'tests/test-all.R' failed.
Complete output:
  > ## run all tests
  > require(testthat)
  Loading required package: testthat
  > test_check('spiders')
  Loading required package: spiders
  [ FAIL 4 | WARN 150 | SKIP 0 | PASS 32 ]
  
  == Failed tests ================================================================
  -- Error (test_predPref.R:74:5): EM, c vs c^t, null ----------------------------
  Error in ``[<-.data.frame`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), 
      value = 1)`: new columns would leave holes after existing columns
  Backtrace:
      x
   1. \-spiders::simPref(...) test_predPref.R:74:4
   2.   +-base::`[<-`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), value = 1)
   3.   \-base::`[<-.data.frame`(...)
  -- Error (test_predPref.R:88:5): EM, c vs general, null ------------------------
  Error in ``[<-.data.frame`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), 
      value = 1)`: new columns would leave holes after existing columns
  Backtrace:
      x
   1. \-spiders::simPref(...) test_predPref.R:88:4
   2.   +-base::`[<-`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), value = 1)
   3.   \-base::`[<-.data.frame`(...)
  -- Error (test_predPref.R:102:5): EM, c vs c^t, alt ----------------------------
  Error in ``[<-.data.frame`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), 
      value = 1)`: new columns would leave holes after existing columns
  Backtrace:
      x
   1. \-spiders::simPref(...) test_predPref.R:102:4
   2.   +-base::`[<-`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), value = 1)
   3.   \-base::`[<-.data.frame`(...)
  -- Error (test_predPref.R:116:5): EM, c vs c^t, alt ----------------------------
  Error in ``[<-.data.frame`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), 
      value = 1)`: new columns would leave holes after existing columns
  Backtrace:
      x
   1. \-spiders::simPref(...) test_predPref.R:116:4
   2.   +-base::`[<-`(`*tmp*`, which(eaten[, jdx] > 0, arr.ind = T), value = 1)
   3.   \-base::`[<-.data.frame`(...)
  
  [ FAIL 4 | WARN 150 | SKIP 0 | PASS 32 ]
  Error: Test failures
  Execution halted