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.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rcodeagent")

0.1.0 by José Gamarra-Moncayo, 5 hours ago


Browse source code at https://github.com/cran/rcodeagent


Authors: José Gamarra-Moncayo [aut, cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports shiny, htmltools, miniUI, rstudioapi, httpuv, httr2, openssl, jose, keyring, sodium, jsonlite, commonmark, xml2, callr, filelock, later, utils, grid

Suggests testthat, withr, pkgload

System requirements: 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)


See at CRAN