tests/testthat/test-zzz-cache.R

test_that("Ollama cache exists and delete", {
  skip_if_no_ollama()
  expect_gt(
    length(fs::dir_ls(.mall_test$cache_ollama, recurse = TRUE)),
    30
  )
  fs::dir_delete(.mall_test$cache_ollama)
})

Try the mall package in your browser

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

mall documentation built on Aug. 19, 2025, 1:14 a.m.