The contents for section are being revised. Thank you for your patience.
The final chapter in this section will focus on btw, a package designed to, βhelp you describe your computational environment to LLMs.β btw also relies on ellmer for configuring a model of choice (the default is ellmer::chat_claude()).
30.1 Configuration
Place the btw configuration options in the .Rprofile (similar to other ellmer configurations). Recall that the .Rprofile file can exist at the user and/or the project-level. For example, a project-level .Rprofile for the sap package might include the following:
After restarting Positron (or RStudio ), the Console should display the model weβre using:
R 4.5.0 exited (preparing for restart)R 4.5.0 restarted.Using model = "claude-sonnet-4-20250514".
We can confirm btw is configured by viewing the R version:
btw("@platform_info")# β btw copied to the clipboard!
## Context"@platform_info"<system_info>R_VERSION: R version 4.5.0 (2025-04-11)OS: macOS Sequoia 15.5SYSTEM: x86_64, darwin20UI: Positron (a VS Code equivalent)LANGUAGE: (EN)LOCALE: en_US.UTF-8ENCODING: en_US.UTF-8TIMEZONE: America/PhoenixDATE: Wednesday, June 11, 2025 (2025-06-11)</system_info>