Skip to content

Releases: s-geissler/codexR

codexR 0.0.1

26 Mar 23:56

Choose a tag to compare

codexR 0.0.1 Pre-release
Pre-release

codexR 0.0.1

Initial public release of codexR, an R package for calling the Codex CLI from RStudio Server.

Highlights

  • Adds a codex() function that can be called directly from an open .R file in RStudio or RStudio Server.
  • Sends active editor context to Codex, including file path, cursor position, and document contents.
  • Supports editor write-back: the original codex("...") call is commented out and the generated R code is inserted
    directly below it.
  • Enforces R-code-only responses and validates returned code with parse() before writing it into the editor.
  • Adds codex_init() for session-level configuration.
  • Supports explicit codex_bin configuration for multi-user servers or custom installations.
  • Supports quiet mode to suppress console output by default.
  • Supports metadata-only object context via objects = ..., with strict safeguards to prevent sending raw data values.
  • Uses an allowlist-based metadata exporter for supported object types such as data frames, lists, matrices, arrays,
    factors, temporal objects, and atomic vectors.

Safety and behavior

  • Raw object contents are never sent to Codex when using objects = ...; only structural metadata is included.
  • Non-parseable or non-R responses are rejected and are not written back into the source file.
  • If no explicit Codex binary is configured, codexR falls back to Sys.which("codex").

Project setup

  • Includes package documentation, example usage, tests, and GitHub Actions setup for R CMD check.