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(
    c(getOption("rollama_model", default = "llama3.1"), "nomic-embed-text"),
    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 Aug. 24, 2026, 9:08 a.m.