Running ‘testthat.R’ [16s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright (c) 2016 Nuno Fachada
  > # Distributed under the MIT License (http://opensource.org/licenses/MIT)
  > 
  > library(testthat)
  > 
  > test_check("micompr")
  Loading required package: micompr
  [ FAIL 4 | WARN 62 | SKIP 0 | PASS 287 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_assumptions.R:25:5'): assumptions_manova constructs the expected objects ──
  Error in `MVN::mvn(data[fidx, ], mvnTest = "royston", univariateTest = "SW")`: unused arguments (mvnTest = "royston", univariateTest = "SW")
  Backtrace:
      ▆
   1. └─micompr::assumptions_manova(iris[, 1:4], iris[, 5]) at test_assumptions.R:25:5
  ── Error ('test_assumptions.R:59:5'): assumptions_manova throws the expected warnings ──
  Error in `MVN::mvn(data[fidx, 1:min(nobs - 1, nvars)], mvnTest = "royston", 
      univariateTest = "SW")`: unused arguments (mvnTest = "royston", univariateTest = "SW")
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test_assumptions.R:59: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. └─micompr::assumptions_manova(bogus_data, factors)
  ── Error ('test_cmpoutput.R:214:3'): assumptions.cmpoutput creates the correct object ──
  Error in `MVN::mvn(data[fidx, ], mvnTest = "royston", univariateTest = "SW")`: unused arguments (mvnTest = "royston", univariateTest = "SW")
  Backtrace:
      ▆
   1. ├─micompr::assumptions(cmp) at test_cmpoutput.R:214:3
   2. └─micompr:::assumptions.cmpoutput(cmp)
   3.   └─micompr::assumptions_manova(scores[, 1:npcs[i]], obs_lvls)
  ── Error ('test_micomp.R:281:3'): micomp assumptions have the correct properties ──
  Error in `MVN::mvn(data[fidx, ], mvnTest = "royston", univariateTest = "SW")`: unused arguments (mvnTest = "royston", univariateTest = "SW")
  Backtrace:
      ▆
   1. ├─micompr::assumptions(mic1a) at test_micomp.R:281:3
   2. └─micompr:::assumptions.micomp(mic1a)
   3.   └─base::lapply(obj, function(x) assumptions(x))
   4.     └─micompr (local) FUN(X[[i]], ...)
   5.       ├─micompr::assumptions(x)
   6.       └─micompr:::assumptions.cmpoutput(x)
   7.         └─micompr::assumptions_manova(scores[, 1:npcs[i]], obs_lvls)
  
  [ FAIL 4 | WARN 62 | SKIP 0 | PASS 287 ]
  Error: Test failures
  Execution halted