Running 'testthat.R' [32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(MRFcov)
  Loading required package: glmnet
  Loading required package: Matrix
  Loading required package: foreach
  Loaded glmnet 2.0-16
  
  Welcome to MRFcov. If you use the package, please cite as: Clark, NJ, Wells, K and Lindberg, O. 2018. Unravelling changing interspecific interactions across environmental gradients using Markov random fields. Ecology doi: 10.1002/ecy.2221 
  > 
  > test_check("MRFcov")
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  Fitting bootstrap_MRF models in sequence using 1 core... 
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  Fitting MRF models in sequence using 1 core ...
  -- 1. Error: (unknown) (@test-cv_MRF_diag.R#22)  -------------------------------
  Function found when exporting methods from the namespace 'dimRed' which is not S4 generic: 'nrow'
  1: cv_MRF_diag(data = Bird.parasites, n_nodes = 4, n_cores = 1, family = "binomial", 
         n_folds = 2, compare_null = TRUE, plot = FALSE) at testthat/test-cv_MRF_diag.R:22
  2: caret::createFolds
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), 
         i[[2L]], from = package)
  8: asNamespace(ns)
  9: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
  10: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), 
         i[[2L]], from = package)
  11: asNamespace(ns)
  12: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
  13: stop(sprintf(msg, sQuote(package), paste(sQuote(bad), collapse = ", ")), domain = NA, 
         call. = FALSE)
  
  == testthat results  ===========================================================
  OK: 31 SKIPPED: 0 FAILED: 1
  1. Error: (unknown) (@test-cv_MRF_diag.R#22) 
  
  Error: testthat unit tests failed
  Execution halted