| install_prereqs | R Documentation |
Walks a non-technical user through everything needed to run screenllm:
install_prereqs(
preset = NULL,
models = .PINNED_DEFAULT_MODELS,
interactive = base::interactive(),
wait_seconds = 60L,
ollama_url = getOption("screenllm.ollama_url")
)
preset |
One of |
models |
Character vector of Ollama model tags to ensure are
installed. Ignored if |
interactive |
Whether to prompt the user before running install
commands or pulling large models. Defaults to |
wait_seconds |
Seconds to wait for the Ollama daemon to come up after (re)starting it. Defaults to 60. |
ollama_url |
Base URL of the Ollama server. |
Detects the OS and checks whether Ollama is installed.
If Ollama is missing, offers to install it (brew on macOS,
winget on Windows, the official install script on Linux). If the
user declines or the package manager is unavailable, opens
https://ollama.com/download in the browser.
Waits for the Ollama daemon to come up (up to wait_seconds).
Pulls each model in models that is not already installed.
Verifies with check_setup().
Safe to re-run: it is a no-op if everything is already in place.
Invisible logical: TRUE if all prerequisites are ready
after the call, FALSE otherwise.
# Check for Ollama without pulling any models. In a non-interactive
# session this only reports status and installs nothing.
install_prereqs(preset = "none")
## Not run:
# Interactive setup that offers to install Ollama and pull models:
install_prereqs(preset = "light") # ~10 GB; runs on 8-16 GB RAM
install_prereqs(preset = "paper") # ~65 GB; needs a workstation
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.