Package: rollama 0.3.0.9000

rollama: Communicate with 'Ollama' to Run Large Language Models Locally

Wraps the 'Ollama' <https://ollama.com> API, which can be used to communicate with generative large language models locally.

Authors:Johannes B. Gruber [aut, cre], Maximilian Weber [aut, ctb]

rollama_0.3.0.9000.tar.gz
rollama_0.3.0.9000.zip(r-4.7)rollama_0.3.0.9000.zip(r-4.6)rollama_0.3.0.9000.zip(r-4.5)
rollama_0.3.0.9000.tgz(r-4.6-any)rollama_0.3.0.9000.tgz(r-4.5-any)
rollama_0.3.0.9000.tar.gz(r-4.7-any)rollama_0.3.0.9000.tar.gz(r-4.6-any)
rollama_0.3.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
rollama/json (API)

# Install 'rollama' in R:
install.packages('rollama', repos = c('https://jbgruber.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jbgruber/rollama/issues

Pkgdown/docs site:https://jbgruber.github.io

On CRAN:

Conda:

8.57 score 126 stars 122 scripts 978 downloads 24 exports 28 dependencies

Last updated from:1820b53ef4. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK174
source / vignettesOK174
linux-release-x86_64OK114
macos-release-arm64OK76
macos-oldrel-arm64OK85
windows-develOK158
windows-releaseOK173
windows-oldrelOK223
wasm-releaseOK116

Exports:chatchat_historycheck_model_installedcopy_modelcreate_modelcreate_schemadelete_modelembed_textlist_modelslist_running_modelsmake_querynew_chatping_ollamapull_modelpush_modelqueryshow_modeltype_arraytype_booleantype_enumtype_integertype_numbertype_objecttype_string

Dependencies:askpasscallrclicurldplyrgenericsgluehttr2jsonlitelifecyclemagrittropensslotelpillarpkgconfigprettyunitsprocessxpspurrrR6rappdirsrlangsystibbletidyselectutf8vctrswithr

authentication
Ollama Turbo Example | Open WebUI Example | Keeping your keys save

Last update: 2026-03-23
Started: 2025-08-23

Using Structured Outputs
Defining a Schema | Extracting Information from Text | Batch Extraction | Nested Objects | Image-Based Extraction | Alternative Ways to Provide Structured Outputs | Create as a list | Create as json string | Using ellmer | Using tidyllm

Last update: 2026-03-23
Started: 2026-03-15

Hugging Face Models

Last update: 2026-03-16
Started: 2024-12-05

annotation
Introduction | Prompting Strategies | Zero-shot | One-shot | Few-shot | Chain-of-Thought | The make_query helper function | Example usage | Zero-shot example | One-shot example | Few-shot example with multiple examples | Batch annotation | Example using a dataframe

Last update: 2024-12-06
Started: 2024-01-03

image-annotation

Last update: 2024-12-06
Started: 2024-01-07

text-embedding

Last update: 2024-12-06
Started: 2024-01-26

Readme and manuals

Help Manual

Help pageTopics
Handle conversationschat_history new_chat
Check if one or several models are installed on the servercheck_model_installed
Create a model from a Modelfilecreate_model
Create a structured output schemacreate_schema type_array type_boolean type_enum type_integer type_number type_object type_string
Generate Embeddingsembed_text
List models that are available locally.list_models
List running modelslist_running_models
Generate and format queries for a language modelmake_query
Ping server to see if Ollama is reachableping_ollama
Pull, push, show and delete modelscopy_model delete_model pull_model push_model show_model
Chat with a LLM through Ollamachat query
rollama Optionsrollama-options