tests/testthat/test-aaa.R

# slightly out of place, but we don't want to pull unnecessary models and this
# should come before the first test
test_that("Auto pull model", {
  skip_if_not(ping_ollama(silent = TRUE))
  expect_true(check_model_installed(getOption("rollama_model", default = "llama3.1"),
                                    auto_pull = TRUE))
})

Try the rollama package in your browser

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

rollama documentation built on April 3, 2025, 7:48 p.m.