Running ‘testthat.R’ [25s/33s]
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
  ── 1. Error: assumptions_manova constructs the expected objects (@test_assumptio
  'roystonTest' is not an exported object from 'namespace:MVN'
  1: assumptions_manova(iris[, 1:4], iris[, 5]) at testthat/test_assumptions.R:25
  2: MVN::roystonTest
  3: getExportedValue(pkg, name)
  4: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 2. Error: assumptions_manova throws the expected warnings (@test_assumptions.
  'roystonTest' is not an exported object from 'namespace:MVN'
  1: expect_warning(assumptions_manova(bogus_data, factors), "Royston test requires at least 4 observations", 
         fixed = TRUE) at testthat/test_assumptions.R:59
  2: quasi_capture(enquo(object), capture_warnings, label = label)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  5: eval_bare(get_expr(quo), get_env(quo))
  6: assumptions_manova(bogus_data, factors)
  7: MVN::roystonTest
  8: getExportedValue(pkg, name)
  9: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 3. Error: assumptions.cmpoutput creates the correct object (@test_cmpoutput.R
  'roystonTest' is not an exported object from 'namespace:MVN'
  1: assumptions(cmp) at testthat/test_cmpoutput.R:214
  2: assumptions.cmpoutput(cmp)
  3: assumptions_manova(scores[, 1:npcs[i]], obs_lvls)
  4: MVN::roystonTest
  5: getExportedValue(pkg, name)
  6: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ── 4. Error: micomp assumptions have the correct properties (@test_micomp.R#281)
  'roystonTest' is not an exported object from 'namespace:MVN'
  1: assumptions(mic1a) at testthat/test_micomp.R:281
  2: assumptions.micomp(mic1a)
  3: lapply(obj, function(x) assumptions(x))
  4: FUN(X[[i]], ...)
  5: assumptions(x)
  6: assumptions.cmpoutput(x)
  7: assumptions_manova(scores[, 1:npcs[i]], obs_lvls)
  8: MVN::roystonTest
  9: getExportedValue(pkg, name)
  10: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 359 SKIPPED: 0 FAILED: 4
  1. Error: assumptions_manova constructs the expected objects (@test_assumptions.R#25) 
  2. Error: assumptions_manova throws the expected warnings (@test_assumptions.R#59) 
  3. Error: assumptions.cmpoutput creates the correct object (@test_cmpoutput.R#214) 
  4. Error: micomp assumptions have the correct properties (@test_micomp.R#281) 
  
  Error: testthat unit tests failed
  Execution halted