ollamar: An R package for running large language models

  • Lin H
  • Safi T
N/ACitations
Citations of this article
18Readers
Mendeley users who have this article in their library.

Abstract

Large language models (LLMs) have transformed natural language processing and AI applications across numerous domains. While cloud-based LLMs are common, locally deployed models offer distinct advantages in reproducibility, data privacy, security, and customization. ollamar is an R package that provides an interface to Ollama, enabling researchers and data scientists to integrate locally-hosted LLMs into their R workflows seamlessly. It implements a consistent API design that aligns with other programming languages and follows established LLM usage conventions. It further distinguishes itself by offering flexible output formats and easy management of conversation history. ollamar is maintained on GitHub and available through the Comprehensive R Archive Network (CRAN), where it regularly undergoes comprehensive continuous integration testing across multiple platforms.

Cite

CITATION STYLE

APA

Lin, H., & Safi, T. (2025). ollamar: An R package for running large language models. Journal of Open Source Software, 10(105), 7211. https://doi.org/10.21105/joss.07211

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free