check_setup: Verify local setup for 'screenllm'

View source: R/setup.R

check_setupR Documentation

Verify local setup for screenllm

Description

Confirms that Ollama is reachable at the configured URL, that R can talk to it, and (optionally) that the four default models are available. Returns TRUE invisibly on success and prints a diagnostic panel; returns FALSE on failure with actionable messages.

Usage

check_setup(
  models = .PINNED_DEFAULT_MODELS,
  ollama_url = getOption("screenllm.ollama_url")
)

Arguments

models

Character vector of model tags to require. Defaults to the four LLMs pinned by default_ensemble(). Pass NULL to skip the model-availability check.

ollama_url

Base URL of the local Ollama server. Defaults to the screenllm.ollama_url option (usually ⁠http://localhost:11434⁠).

Value

Invisible logical.

Examples


check_setup()
check_setup(models = NULL) # just check the server, not the models


screenllm documentation built on Sept. 24, 2026, 5:11 p.m.