Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(MRFcov)
  Loading required package: glmnet
  Loading required package: Matrix
  Loaded glmnet 4.0-2
  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 ...
  -- 1. Error: no n_nodes argument should produce a warning (@test-MRFcov.R#38)  -
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_success(...)
   12. MRFcov::MRFcov(data = Bird.parasites[, c(1:4)], family = "binomial")
    3. base::data.frame(mrf_data)
   11. dplyr::summarise_all(., dplyr::funs(sd(.)))
   24. base::getExportedValue(pkg, name)
   25. base::asNamespace(ns)
   26. base::getNamespace(ns)
   27. base::loadNamespace(name)
   28. base::library.dynam(lib, package, package.lib)
  
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  -- 2. Error: (unknown) (@test-MRFcov.R#56)  ------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. MRFcov::MRFcov(data = Bird.parasites, n_nodes = 4, family = "binomial")
    2. base::data.frame(mrf_data)
   10. dplyr::summarise_all(., dplyr::funs(sd(.)))
   13. base::getExportedValue(pkg, name)
   14. base::asNamespace(ns)
   15. base::getNamespace(ns)
   16. base::loadNamespace(name)
   17. base::library.dynam(lib, package, package.lib)
  
  Fitting bootstrap_MRF models in sequence using 1 core... 
  -- 3. Error: (unknown) (@test-bootstrap_MRF.R#21)  -----------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. MRFcov::bootstrap_MRF(...)
    2. pbapply::pblapply(...)
    3. base::lapply(X, FUN, ...)
    4. MRFcov:::FUN(X[[i]], ...)
    5. base::lapply(...)
    6. MRFcov:::FUN(X[[i]], ...)
    7. MRFcov:::shuffle_rows(data)
    8. dplyr::sample_n
    9. base::getExportedValue(pkg, name)
   10. base::asNamespace(ns)
   11. base::getNamespace(ns)
   12. base::loadNamespace(name)
   13. base::library.dynam(lib, package, package.lib)
  
  Generating node-optimised Conditional Random Fields model
  Leave-one-out cv used for the following low-occurrence (rare) nodes:
   Microfilaria ...
  -- 4. Error: (unknown) (@test-cv_MRF_diag.R#22)  -------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. MRFcov::cv_MRF_diag(...)
    2. MRFcov::MRFcov(...)
    3. base::data.frame(mrf_data)
   11. dplyr::summarise_all(., dplyr::funs(sd(.)))
   14. base::getExportedValue(pkg, name)
   15. base::asNamespace(ns)
   16. base::getNamespace(ns)
   17. base::loadNamespace(name)
   18. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 10 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: no n_nodes argument should produce a warning (@test-MRFcov.R#38) 
  2. Error: (unknown) (@test-MRFcov.R#56) 
  3. Error: (unknown) (@test-bootstrap_MRF.R#21) 
  4. Error: (unknown) (@test-cv_MRF_diag.R#22) 
  
  Error: testthat unit tests failed
  Execution halted