find_ollama_binary: Locate the Ollama binary on disk

View source: R/setup.R

find_ollama_binaryR Documentation

Locate the Ollama binary on disk

Description

Sys.which("ollama") returns "" when the parent process's PATH doesn't include the install location. This bites macOS GUI R.app users hard: brew installs Ollama at ⁠/usr/local/bin/ollama⁠ (Intel) or ⁠/opt/homebrew/bin/ollama⁠ (Apple Silicon), and the double-click R.app launcher inherits a truncated PATH that omits both. Users with a fully working ollama in Terminal end up with a screenllm app that refuses to start because it can't find the binary.

Usage

find_ollama_binary()

Details

This helper first tries Sys.which(), then probes a list of known install locations per platform.

Value

Full path to the binary, or "" if none found.


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