Running ‘testthat.R’ [50s/70s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > library(maestro)
  > library(future)
  > 
  > test_check("maestro")
  [ FAIL 5 | WARN 0 | SKIP 20 | PASS 236 ]
  
  ══ Skipped tests (20) ══════════════════════════════════════════════════════════
  • On CRAN (20): 'test-MaestroPipeline.R:10:3', 'test-MaestroPipeline.R:26:3',
    'test-MaestroPipeline.R:42:3', 'test-MaestroPipeline.R:53:3',
    'test-MaestroPipelineList.R:8:3', 'test-dags.R:6:3', 'test-dags.R:234:5',
    'test-dags.R:308:5', 'test-get_flags.R:29:3', 'test-get_flags.R:57:3',
    'test-get_schedule.R:8:3', 'test-get_schedule.R:20:3',
    'test-get_slot_usage.R:32:3', 'test-get_slot_usage.R:75:3',
    'test-invoke.R:83:5', 'test-invoke.R:110:5', 'test-run_schedule.R:70:3',
    'test-run_schedule.R:145:3', 'test-run_schedule.R:487:3',
    'test-run_schedule.R:520:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-MaestroSchedule.R:5:3'): MaestroSchedule works ─────────────────
  Error in `value[[3L]](cond)`: Failed to execute orchestrator with error Error in `purrr::map_lgl()`: i In index: 3. Caused by error in `[[.default`: ! subscript out of bounds
  Backtrace:
       ▆
    1. └─schedule$run(orch_n = 1, orch_unit = "day") at test-MaestroSchedule.R:5:3
    2.   └─base::tryCatch(...)
    3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    4.       ├─base (local) tryCatchOne(...)
    5.       │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    6.       └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
    7.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    8.           └─value[[3L]](cond)
    9.             └─cli::cli_abort("Failed to execute orchestrator with error {e}")
   10.               └─rlang::abort(...)
  ── Error ('test-MaestroSchedule.R:68:5'): MaestroSchedule works when not running all (verification of checking) ──
  Error in `value[[3L]](cond)`: Failed to execute orchestrator with error Error in `purrr::map_lgl()`: i In index: 3. Caused by error in `[[.default`: ! subscript out of bounds
  Backtrace:
       ▆
    1. ├─testthat::expect_message(...) at test-MaestroSchedule.R:67:3
    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. └─schedule$run(orch_n = 1, orch_unit = "day") at test-MaestroSchedule.R:68:5
    8.   └─base::tryCatch(...)
    9.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.       ├─base (local) tryCatchOne(...)
   11.       │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   12.       └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   13.         └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   14.           └─value[[3L]](cond)
   15.             └─cli::cli_abort("Failed to execute orchestrator with error {e}")
   16.               └─rlang::abort(...)
  ── Error ('test-get_status.R:3:3'): get_status returns a data.frame ────────────
  Error in `value[[3L]](cond)`: Failed to execute orchestrator with error Error in `purrr::map_lgl()`: i In index: 3. Caused by error in `[[.default`: ! subscript out of bounds
  Backtrace:
       ▆
    1. └─maestro::run_schedule(schedule, orch_frequency = "hourly") at test-get_status.R:3:3
    2.   └─schedule$run(...)
    3.     └─base::tryCatch(...)
    4.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    5.         ├─base (local) tryCatchOne(...)
    6.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
    7.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
    8.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
    9.             └─value[[3L]](cond)
   10.               └─cli::cli_abort("Failed to execute orchestrator with error {e}")
   11.                 └─rlang::abort(...)
  ── Error ('test-run_schedule.R:11:7'): run_schedule works on different kinds of frequencies ──
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `map(.x, .f, ..., .progress = .progress)`: i In index: 2.
  Caused by error:
  ! Expected `{ ... }` to run without any errors.
  i Actually got a <rlang_error> with text:
    Failed to execute orchestrator with error Error in `purrr::map_lgl()`: i In index: 3. Caused by error in `[[.default`: ! subscript out of bounds
  ── Error ('test-run_schedule.R:443:5'): warns if the orch frequency is less than the highest pipe frequency ──
  Error in `value[[3L]](cond)`: Failed to execute orchestrator with error Error in `purrr::map_lgl()`: i In index: 3. Caused by error in `[[.default`: ! subscript out of bounds
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-run_schedule.R:442:3
    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. └─maestro::run_schedule(schedule, orch_frequency = "daily") at test-run_schedule.R:443:5
    8.   └─schedule$run(...)
    9.     └─base::tryCatch(...)
   10.       └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.         ├─base (local) tryCatchOne(...)
   12.         │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
   13.         └─base (local) tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   14.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   15.             └─value[[3L]](cond)
   16.               └─cli::cli_abort("Failed to execute orchestrator with error {e}")
   17.                 └─rlang::abort(...)
  
  [ FAIL 5 | WARN 0 | SKIP 20 | PASS 236 ]
  Error: Test failures
  Execution halted