Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(checkmate)
  > library(testthat)
  > library(MBNMAtime)
  
  Attaching package: 'MBNMAtime'
  
  The following object is masked from 'package:base':
  
      rank
  
  > library(igraph)
  
  Attaching package: 'igraph'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  The following objects are masked from 'package:stats':
  
      decompose, spectrum
  
  The following object is masked from 'package:base':
  
      union
  
  > 
  > testthat::test_check("MBNMAtime")
  -- 1. Error: add_index functions correctly (@test_prepare.functions.R#7)  ------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_equal(...)
    4. MBNMAtime::add_index(data)
   10. dplyr::group_by(., studyID, time, treatment)
   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)
  
  -- 2. Failure: mb.validate.data functions correctly (@test_prepare.functions.R#6
  `mb.validate.data(df.err)` threw an error with unexpected message.
  Expected match: "All SEs must be >0"
  Actual message: "DLL 'dplyr' not found: maybe not installed for this architecture?"
  Backtrace:
    1. testthat::expect_error(mb.validate.data(df.err), "All SEs must be >0")
    6. MBNMAtime:::mb.validate.data(df.err)
    7. dplyr::arrange
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::library.dynam(lib, package, package.lib)
  
  -- 3. Error: mb.validate.data functions correctly (@test_prepare.functions.R#66)
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_warning(mb.validate.data(df.err, CFB = FALSE))
    6. MBNMAtime:::mb.validate.data(df.err, CFB = FALSE)
    7. dplyr::arrange
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::library.dynam(lib, package, package.lib)
  
  -- 4. Error: mb.network functions correctly (@test_prepare.functions.R#107)  ---
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
    1. testthat::expect_message(mb.network(osteopain), "Reference treatment")
    6. MBNMAtime::mb.network(osteopain)
    7. MBNMAtime:::mb.validate.data(data.ab)
    8. dplyr::arrange
    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)
  
  -- 5. Error: (unknown) (@test_write.functions.R#2)  ----------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. MBNMAtime::mb.network(osteopain)
   2. MBNMAtime:::mb.validate.data(data.ab)
   3. dplyr::arrange
   4. base::getExportedValue(pkg, name)
   5. base::asNamespace(ns)
   6. base::getNamespace(ns)
   7. base::loadNamespace(name)
   8. base::library.dynam(lib, package, package.lib)
  
  == testthat results  ===========================================================
  [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Error: add_index functions correctly (@test_prepare.functions.R#7) 
  2. Failure: mb.validate.data functions correctly (@test_prepare.functions.R#62) 
  3. Error: mb.validate.data functions correctly (@test_prepare.functions.R#66) 
  4. Error: mb.network functions correctly (@test_prepare.functions.R#107) 
  5. Error: (unknown) (@test_write.functions.R#2) 
  
  Error: testthat unit tests failed
  Execution halted