AI Assistant Gadget for 'RStudio'
Overview
Provides an interactive 'RStudio' gadget for working with an AI assistant during package and script development. The gadget can use selected editor text, the active source file, package metadata, and uploaded files as context for code explanation, code generation, documentation, and review workflows. It offers model presets, assistant behavior settings, responsive code-focused output, and explicit copy, insert, and replace actions for the active source editor. API interactions via the 'httr' package are performed asynchronously using 'promises' and 'future' to avoid blocking the R console. The backend is configured via the OPENAI_API_KEY environment variable.
- Attachments: add support for
.csvfiles. CSV data is converted into a model-friendly representation consisting of a dimensions header, a column schema with inferred types, and the rows rendered as a Markdown table. - Attachments: the CSV field delimiter is detected automatically (comma, semicolon, tab, or pipe), and semicolon files with comma decimal marks are handled.
- Attachments: large CSV files are truncated to the first 1000 rows with an explicit note; over-long cell values are shortened.
- Docs: update README, vignette, and the in-app help to list
.csvas a supported attachment format.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 31
- Examples that run
- 40%2 run in a plain check · 3 never run
- Exported functions with examples
- 16%
- Documented parameters
- 100%
- Return-value docs
- 97%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/antoniczolgowski/packetllm on 2026-10-18.
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-06-25Commits: at least 14 crediting it in the message
- Claude Opus 4.87 commits · Jun 2026
- Claude Sonnet 4.67 commits · Jun 2026
Dependencies
Installing PacketLLM adds 72 packages (43 with compiled code, 59 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, bslib 5.6 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.1.3Latest
- 0.1.22026-06-25 · diff ↗ ·
added 3 exports
available_model_presets, capture_rstudio_context, packetllm_addin - RR 4.6.0 released · 2026-04-24
- 0.1.1
- 0.1.02025-04-24
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-04-24
- Total releases
- 4 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 51 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PacketLLM")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.
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.