rcodeagent: Coding Assistant for 'RStudio' with 'ChatGPT' Authentication

Provides an interactive coding assistant in the 'RStudio' Viewer to explain R code, draft scripts, and propose changes to a selected editor target. Supports read-only chat, explicitly authorized edits, and user-requested submission of code to the native R console. Authenticates through 'ChatGPT' using browser-based OAuth 2.0 authorization with Proof Key for Code Exchange (PKCE) and stores credentials using the operating system credential store. Model requests require Internet access and an eligible 'ChatGPT' Plus or Pro account under the service's current terms <https://developers.openai.com/siwc/quickstart>. Neither an API key nor 'Codex CLI' is required.

Version: 0.1.0
Depends: R (≥ 4.2.0)
Imports: shiny, htmltools, miniUI, rstudioapi, httpuv, httr2 (≥ 1.2.0), openssl, jose (≥ 2.0.0), keyring, sodium, jsonlite, commonmark, xml2, callr, filelock (≥ 1.0.3), later, utils, grid
Suggests: testthat (≥ 3.2.1), withr, pkgload
Published: 2026-11-11
DOI: 10.32614/CRAN.package.rcodeagent (may not be active yet)
Author: José Gamarra-Moncayo [aut, cre]
Maintainer: José Gamarra-Moncayo <gamarramoncayoj at gmail.com>
License: GPL (≥ 3)
NeedsCompilation: no
SystemRequirements: RStudio Desktop (interactive use), web browser, Internet access, operating system credential store, eligible ChatGPT Plus or Pro account (model requests), Cairo support (PDF export), XQuartz (macOS PDF export)
Materials: NEWS
CRAN checks: rcodeagent results

Documentation:

Reference manual: rcodeagent.html , rcodeagent.pdf

Downloads:

Package source: rcodeagent_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

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