Running 'spelling.R' [0s]
  Running 'testthat.R' [9s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(detrendr)
  > 
  > test_check("detrendr")
  Starting 2 test processes
  [ FAIL 6 | WARN 0 | SKIP 15 | PASS 52 ]
  
  == Skipped tests ===============================================================
  * On CRAN (7)
  * get_os() == "linux" is not TRUE (4)
  * get_os() == "mac" is not TRUE (4)
  
  == Failed tests ================================================================
  -- Error ('test-class-constructors.R:20'): detrended_img works -----------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-class-constructors.R:20:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat (local) .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-detrendr::detrended_img(three_d, "rh", 8:9, TRUE)
    8. | \-detrendr:::custom_stop(...)
    9. |   \-list(...) %>% unlist() %>% purrr::map_chr(toString)
   10. \-base::loadNamespace(x)
   11.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test-detrend.R:170'): detrending errors correctly -------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-detrend.R:170:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat (local) .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-detrendr::img_detrend_boxcar(img, "abc", purpose = "ff")
    8. | \-detrendr:::custom_stop(...)
    9. |   \-list(...) %>% unlist() %>% purrr::map_chr(toString)
   10. \-base::loadNamespace(x)
   11.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test-dir-detrend.R:216'): `make_thresh_filename_part()` works -------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-testthat::expect_equal(...) at test-dir-detrend.R:216:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-detrendr:::make_thresh_filename_part(structure(0, thresh = 1))
   5. | \-detrendr:::make_thresh_filename_part(structure(0, thresh = list(thresh)))
   6. |   \-... %>% unlist()
   7. +-base::unlist(.)
   8. \-base::loadNamespace(x)
   9.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test-pillar-stats.R:28'): pillar-stats works ------------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-... %>% structure(dimnames = NULL) at test-pillar-stats.R:28:2
   2. +-base::structure(., dimnames = NULL)
   3. \-base::loadNamespace(x)
   4.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test-best_params.R:114'): best_swaps() works ------------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-testthat::expect_error(...) at test-best_params.R:114:2
    2. | \-testthat:::expect_condition_matching(...)
    3. |   \-testthat:::quasi_capture(...)
    4. |     +-testthat (local) .capture(...)
    5. |     | \-base::withCallingHandlers(...)
    6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. +-detrendr::best_swaps(array(7, dim = rep(1, 4)))
    8. | \-detrendr:::custom_stop(...)
    9. |   \-list(...) %>% unlist() %>% purrr::map_chr(toString)
   10. \-base::loadNamespace(x)
   11.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test-utils.R:20'): sum_pillars() and mean_pillars() work ------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-testthat::expect_equal(mean_pillars(arr3d), sum_pillars(arr3d)/dim(arr3d)[4]) at test-utils.R:20:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-detrendr::mean_pillars(arr3d)
   5. | \-... %>% unlist()
   6. +-base::unlist(.)
   7. \-base::loadNamespace(x)
   8.   \-base::library.dynam(lib, package, package.lib)
  
  [ FAIL 6 | WARN 0 | SKIP 15 | PASS 52 ]
  Error: Test failures
  Execution halted