Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > #library(testthat)
  > library(diyar)
  > #testthat::test_dir("tests/testthat")
  > testthat::test_check("diyar")
  -- 1. Error: (unknown) (@test-episode_group.R#5)  ------------------------------
  package or namespace load failed for 'dplyr' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library(dplyr)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  [1] "1 -> 10"
  [1] "10 <- 1"
  [1] "5 ?? NA"
  [1] "NA ?? NA"
  [1] "20 == 20"
  [1] "1 <- -8"
  [1] "20 <- 11"
  [1] "5 == 5"
  [1] "5 -> 10"
  [1] "20 <- 10"
  [1] "1 <- -8" "1 <- -8" "1 <- -8"
  [1] "20 <- 11" "20 <- 11" "20 <- 11"
  [1] "5 == 5" "5 == 5" "5 == 5"
  [1] "5 -> 10" "5 -> 10" "5 -> 10"
  [1] "20 <- 10" "20 <- 10" "20 <- 10"
  [1] "20 <- 10" "NA ?? NA"
  
  Group criteria 1 - `cri_1`-- 2. Error: (unknown) (@test-record_group.R#13)  ------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. diyar::record_group(df, criteria = cri_1, group_stats = TRUE)
   2. dplyr::arrange
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::library.dynam(lib, package, package.lib)
  
  Episode or recurrence window 1.
  -- 3. Error: (unknown) (@test-to_s4.R#5)  --------------------------------------
  DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. diyar::fixed_episodes(infections$date, case_length = 30, to_s4 = F)
   2. diyar::episode_group(...)
   3. dplyr::left_join
   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: 144 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 3 ]
  1. Error: (unknown) (@test-episode_group.R#5) 
  2. Error: (unknown) (@test-record_group.R#13) 
  3. Error: (unknown) (@test-to_s4.R#5) 
  
  Error: testthat unit tests failed
  Execution halted