R Under development (unstable) (2024-08-23 r87049 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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 2 | WARN 0 | SKIP 4 | PASS 183 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-build_schedule.R:10:3', 'test-build_schedule_entry.R:14:3', 'test-run_schedule.R:151:3', 'test-run_schedule.R:193:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-suggest_orch_frequency.R:3:3'): suggest_orch_frequency gives valid suggestions ── Error in `suggest_orch_frequency(example_schedule)`: There are invalid time units. i Use `build_schedule()` to create a valid schedule. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-suggest_orch_frequency.R:3:3 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─maestro::suggest_orch_frequency(example_schedule) 5. └─cli::cli_abort(c("There are invalid time units.", i = "Use {.fn build_schedule} to create a valid schedule.")) 6. └─rlang::abort(...) ── Failure ('test-suggest_orch_frequency.R:46:3'): suggest_orch_frequency works when check_datetime is a Date ── Expected `suggest_orch_frequency(example_schedule, check_datetime = as.Date("2024-08-06"))` to run without any errors. i Actually got a with text: There are invalid time units. i Use `build_schedule()` to create a valid schedule. [ FAIL 2 | WARN 0 | SKIP 4 | PASS 183 ] Error: Test failures Execution halted