PacketLLM: AI Assistant Gadget for 'RStudio'

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.

Version: 0.1.2
Depends: R (≥ 4.1.0)
Imports: future, httr, pdftools, promises, readtext, rstudioapi, shiny, shinyjs, stats, tools, utils
Suggests: htmltools, knitr, remotes, rmarkdown, testthat (≥ 3.0.0), usethis
Published: 2026-06-25
DOI: 10.32614/CRAN.package.PacketLLM
Author: Antoni Czolgowski [aut, cre]
Maintainer: Antoni Czolgowski <antoni.czolgowski at gmail.com>
BugReports: https://github.com/AntoniCzolgowski/PacketLLM/issues
License: MIT + file LICENSE
URL: https://github.com/AntoniCzolgowski/PacketLLM
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: PacketLLM results

Documentation:

Reference manual: PacketLLM.html , PacketLLM.pdf
Vignettes: Introduction to PacketLLM (source, R code)

Downloads:

Package source: PacketLLM_0.1.2.tar.gz
Windows binaries: r-devel: PacketLLM_0.1.1.zip, r-release: PacketLLM_0.1.1.zip, r-oldrel: PacketLLM_0.1.1.zip
macOS binaries: r-release (arm64): PacketLLM_0.1.2.tgz, r-oldrel (arm64): PacketLLM_0.1.2.tgz, r-release (x86_64): PacketLLM_0.1.2.tgz, r-oldrel (x86_64): PacketLLM_0.1.2.tgz
Old sources: PacketLLM archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=PacketLLM to link to this page.