R Under development (unstable) (2025-09-02 r88773 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > library(testthat) > library(edgemodelr) > > test_check("edgemodelr") [ FAIL 7 | WARN 1 | SKIP 2 | PASS 381 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • Skipping edge_quick_setup integration test to avoid downloading models during testing (1): 'test-model-management.R:195:3' • empty test (1): 'test-model-loading.R:110:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-streaming.R:73:3'): edge_stream_completion function signature and validation ── Error: Error during streaming completion: Invalid model context Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-streaming.R:73: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. └─edgemodelr::edge_stream_completion(...) 8. └─edgemodelr:::edge_completion_stream_internal(...) ── Error ('test-streaming.R:165:3'): edge_stream_completion parameter validation ── Error: Error during streaming completion: Invalid model context Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-streaming.R:165: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. └─edgemodelr::edge_stream_completion(NULL, "test", function(x) TRUE) 8. └─edgemodelr:::edge_completion_stream_internal(...) ── Failure ('test-streaming.R:212:9'): Streaming prompt validation ───────────── grepl("could not find function", e$message) is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-streaming.R:206:5 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─base::tryCatch(...) at test-streaming.R:208:7 10. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 11. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12. └─value[[3L]](cond) 13. └─testthat::expect_true(grepl("could not find function", e$message)) at test-streaming.R:212:9 ── Failure ('test-streaming.R:212:9'): Streaming prompt validation ───────────── grepl("could not find function", e$message) is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-streaming.R:206:5 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─base::tryCatch(...) at test-streaming.R:208:7 10. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 11. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12. └─value[[3L]](cond) 13. └─testthat::expect_true(grepl("could not find function", e$message)) at test-streaming.R:212:9 ── Failure ('test-streaming.R:212:9'): Streaming prompt validation ───────────── grepl("could not find function", e$message) is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-streaming.R:206:5 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─base::tryCatch(...) at test-streaming.R:208:7 10. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 11. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12. └─value[[3L]](cond) 13. └─testthat::expect_true(grepl("could not find function", e$message)) at test-streaming.R:212:9 ── Failure ('test-streaming.R:212:9'): Streaming prompt validation ───────────── grepl("could not find function", e$message) is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-streaming.R:206:5 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─base::tryCatch(...) at test-streaming.R:208:7 10. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 11. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12. └─value[[3L]](cond) 13. └─testthat::expect_true(grepl("could not find function", e$message)) at test-streaming.R:212:9 ── Failure ('test-streaming.R:212:9'): Streaming prompt validation ───────────── grepl("could not find function", e$message) is not TRUE `actual`: FALSE `expected`: TRUE Backtrace: ▆ 1. ├─testthat::expect_silent(...) at test-streaming.R:206:5 2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise) 3. │ ├─testthat (local) .capture(...) 4. │ │ ├─withr::with_output_sink(...) 5. │ │ │ └─base::force(code) 6. │ │ ├─base::withCallingHandlers(...) 7. │ │ └─base::withVisible(code) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. └─base::tryCatch(...) at test-streaming.R:208:7 10. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 11. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12. └─value[[3L]](cond) 13. └─testthat::expect_true(grepl("could not find function", e$message)) at test-streaming.R:212:9 [ FAIL 7 | WARN 1 | SKIP 2 | PASS 381 ] Error: Test failures Execution halted