Package: gptr Title: Language Model Agents in Live 'R' Sessions Version: 1.0.0 Authors@R: c( person("Wanjun", "Gu", , "wanjun.gu@ucsf.edu", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0002-7342-7000")), person("Tianlu", "Zhu", , "tianluz2013@gmail.com", role = "ctb", comment = "UI/UX polishing and CI/CD"), person("Gianmarco", "Bellucci", , "Gianmarco.Bellucci@ucsf.edu", role = "ctb", comment = c("Testing", ORCID = "0000-0002-2635-1699")) ) Description: Runs language model agents in an existing 'R' session, where generated code can inspect and modify objects already in memory. The peter() function supports interactive chat and programmatic calls. Conversational models use tools and return session objects; typed decision models return logical, character or numeric vectors with associated model probabilities. Supports the 'Anthropic' , 'OpenAI' and 'Google Gemini' APIs, 'OpenAI'-compatible endpoints, local 'Ollama' models, and the 'Claude Code' and 'Codex' command line tools. Decision models include 'Jev', hosted by 'TypeSafe AI' , and the local 'Clef'. Top-level agent calls and their executed code can be recorded in 'R' scripts, 'R Markdown' and 'Quarto' documents, or 'Jupyter' notebooks. Recorded 'R' scripts can be replayed without model calls when the required inputs and packages are available. License: Apache License (== 2.0) URL: https://broccolito.github.io/gptr/, https://github.com/Broccolito/gptr BugReports: https://github.com/Broccolito/gptr/issues Depends: R (>= 4.2.0) Imports: cli (>= 3.6.2), curl (>= 6.0.0), graphics, grDevices, jsonlite (>= 1.8.8), methods, processx (>= 3.8.6), ps (>= 1.8.0), rlang (>= 1.1.0), stats, tools, utils, yaml (>= 2.3.0) Suggests: bslib, chromote, codetools, data.table, DBI, duckdb, httpuv, keyring, knitr, later, magick, openssl, ragg, reticulate, rmarkdown, RSQLite, rstudioapi, shiny, stringi, testthat (>= 3.2.0), vctrs, withr Enhances: repr VignetteBuilder: knitr, rmarkdown Config/testthat/edition: 3 Copyright: file inst/COPYRIGHTS Encoding: UTF-8 Language: en-US NeedsCompilation: no SystemRequirements: Optional: Ollama (>= 0.35.1) for native local decision models; other optional external programs: 'claude' (Claude Code) and 'codex' (Codex) for subscription providers, 'quarto' for 'Quarto' documents, and a 'Chrome'-family browser for app screenshots. Config/roxygen2/version: 8.1.1 Packaged: 2026-11-01 10:14:08 UTC; root Author: Wanjun Gu [aut, cre, cph] (ORCID: ), Tianlu Zhu [ctb] (UI/UX polishing and CI/CD), Gianmarco Bellucci [ctb] (Testing, ORCID: ) Maintainer: Wanjun Gu Repository: https://cran.r-universe.dev Date/Publication: 2026-11-01 07:39:43 UTC RemoteUrl: https://github.com/cran/gptr RemoteRef: HEAD RemoteSha: 9e80ed4c4f9c308532a486b02039381cd86c343a