R Under development (unstable) (2024-04-30 r86503 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(rollama) > > test_check("rollama") x Could not connect to Ollama at [1] "Error in httr2::req_perform(httr2::req_url_path(httr2::request(server), : \n Failed to perform HTTP request.\nCaused by error in `curl::curl_fetch_memory()`:\n! Failed to connect to localhost port 11434 after 2220 ms: Couldn't connect to server\n" attr(,"class") [1] "try-error" attr(,"condition") Error in `httr2::req_perform()`: ! Failed to perform HTTP request. Caused by error in `curl::curl_fetch_memory()`: ! Failed to connect to localhost port 11434 after 2220 ms: Couldn't connect to server --- Backtrace: x 1. +-testthat::expect_type(ping_ollama(), "logical") at test-utils.R:2:3 2. | \-testthat::quasi_label(enquo(object), arg = "object") 3. | \-rlang::eval_bare(expr, quo_get_env(quo)) 4. \-rollama::ping_ollama() 5. +-base::try(...) 6. | \-base::tryCatch(...) 7. | \-base (local) tryCatchList(expr, classes, parentenv, handlers) 8. | \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 9. | \-base (local) doTryCatch(return(expr), name, parentenv, handler) 10. +-httr2::resp_body_json(...) 11. | \-httr2:::check_response(resp) 12. | \-httr2:::is_response(resp) 13. \-httr2::req_perform(...) 14. \-base::tryCatch(...) 15. \-base (local) tryCatchList(expr, classes, parentenv, handlers) 16. \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 17. \-value[[3L]](cond) [ FAIL 0 | WARN 0 | SKIP 11 | PASS 1 ] ══ Skipped tests (11) ══════════════════════════════════════════════════════════ • ping_ollama(silent = TRUE) is not TRUE (11): 'test-chat.R:2:3', 'test-chat.R:7:3', 'test-embedding.R:2:3', 'test-embedding.R:7:3', 'test-models.R:4:3', 'test-models.R:9:3', 'test-models.R:14:3', 'test-models.R:22:3', 'test-models.R:28:3', 'test-models.R:36:3', 'test-utils.R:7:5' [ FAIL 0 | WARN 0 | SKIP 11 | PASS 1 ] > > proc.time() user system elapsed 1.54 0.31 31.39