tests/testthat/test-delete.R

library(testthat)
library(ollamar)

test_that("delete function works", {
    skip_if_not(test_connection(logical = TRUE), "Ollama server not available")

    # wrong model
    expect_invisible(delete("sdafds"))
})

Try the ollamar package in your browser

Any scripts or data that you put into this service are public.

ollamar documentation built on April 3, 2025, 8:31 p.m.