Skip to content

tidyprompt

0.4.0Package record

Prompt Large Language Models and Enhance Their Functionality

1packages depend
4.4Kdownloads / year
55.4%test coverage
13/13flavors OK

Overview

About
Maintained by Luka KoningCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funder: Kennispunt Twente

Easily construct prompts and associated logic for interacting with large language models (LLMs). 'tidyprompt' introduces the concept of prompt wraps, which are building blocks that you can use to quickly turn a simple prompt into a complex one. Prompt wraps do not just modify the prompt text, but also add extraction and validation functions that will be applied to the response of the LLM. This ensures that the user gets the desired output. 'tidyprompt' can add various features to prompts and their evaluation by LLMs, such as structured output, automatic feedback, retries, reasoning modes, autonomous R function calling, and R code generation and evaluation. It is designed to be compatible with any LLM provider that offers chat completion.

Changes in 0.4.0
  • New prompt wrap answer_as_dataframe() for extracting tabular results via

structured output, with support for row schemas, array-of-row schemas,

and optional row-count validation.

  • New prompt wrap answer_as_numeric() for extracting numeric responses,

including optional minimum and maximum value validation.

  • send_prompt() can now directly use an 'ellmer' chat object as

the llm_provider to evaluate the prompt with (will build

an llm_provider_ellmer() under the hood)

  • llm_provider_ellmer() was improved to better synchronize with

the native 'ellmer' state, for instance for streaming, multimodal/image

content, and persistent chats, with clearer warnings when settings need to

be configured on the underlying ellmer chat object.

Show all changes in 0.4.0Hide the rest of the changes in 0.4.0
  • answer_as_json() and answer_using_tools() have broader ellmer

compatibility, including ellmer::type_from_schema(), ellmer built-in tools,

and better handling of optional or ignored tool arguments.

  • Chat history handling is more robust for tool and ellmer-native workflows:

tool rows are supported, non-replayable native rows (tool call and thinking rows)

are kept for inspection but not re-sent to the LLM provider, and related

metadata is normalized more reliably.

  • Update e-mail address of maintainer in DESCRIPTION file

(change to a personal e-mail address due to leaving the organization).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.3 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories

none known

Documentation

In release 0.4.0
READMEYes · 899 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 0.4.0Citation fileNoWebsiteYes · pkgdown
Help pages
59 (4 internal)includes a package overview page
Examples that run
64%35 run in a plain check (2 of them under a condition) · 20 never run
Exported functions with examples
100%
Documented parameters
92%
Return-value docs
95%
Help pages citing references
3%

Downloads

4.4K
CRAN downloads in the past year
Rank #9,481 · ~12/day · ~371/mo
Daily download trend is not available in this view yet.
37630 days
1K90 days
4.4K1 year
Compare downloads with other packages →
Also on108 r2u3 autocran

Repository

33Stars
1Forks
2Open issues
0Open PRs
5Releases
732Commits
3Commit identities
llmr-package
732 commits · Last activity 2026-09-29 · +6.5% stars, 30d · Default branch at 0.4.0.9000, ahead of CRAN 0.4.0 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
4
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-13 · 262026-10-10 · 33
PracticesBeta

11 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/kennispunttwente/tidyprompt on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-29 · The repository has a site deploy workflow

pkgdown site last built 2026-09-29

CRAN release process (1)
cran-comments.md
Lint, format, editor (4)
Lint workflowjarlAirRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-09-24
    Seen in the repository: .github/copilot-instructions.md
    Pull request: opened by its own account
    Commits: 1 by its own account
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
22 external dependencies (excludes base and recommended)

Installing tidyprompt adds 24 packages (16 with compiled code, 20 MB of source tarballs). Heaviest: stringi 11 MB, openssl 1.1 MB, jsonlite 1.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer since 0.0.1 (2025), Copyright holder
Author, Copyright holder
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.0Latest
    record
    2026-04-21 · current release · diff ↗ ·
    added 2 exports
    answer_as_dataframe, answer_as_numeric
  • 0.3.0
    record
    2025-11-30 · diff ↗ ·
    added 1 export
    add_image
  • 0.2.0
    record
    2025-08-25 · diff ↗ ·
    added 1 export
    provider_prompt_wrap
  • 0.1.0
    record
    2025-08-18 · diff ↗ ·
    added 4 exports
    answer_as_category, answer_as_multi_category, llm_break_soft, llm_provider_ellmer
  • R
    R 4.5.0 released · 2025-04-11
  • 0.0.1
    record
    2025-01-08
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-01-08
Total releases
5 / 1 yrs
License
GPL (>= 3) | file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
271 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("tidyprompt")
Koning, L., Kennispunt Twente, & Van de Merwe, T. (2026). tidyprompt: Prompt Large Language Models and Enhance Their Functionality (Version 0.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.tidyprompt

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for tidyprompt version 0.4.0 [Data set]. HJJB, LLC. Data release v2026-10-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy