The article discusses new tools that facilitate the integration of generative AI into R programming, particularly focusing on LLMs for coding assistance. It highlights 'gander', an IDE add-in for RStudio and Positron, which offers contextual help based on surrounding code and variables. Developers can choose models like Anthropic's Claude Sonnet for enhanced capabilities. The installation process is straightforward, and users can also utilize chatbots like 'ellmer' for queries and local LLM operations, expanding possibilities in R programming workflows.
gander's interface asks if you want to replace selected code or put its suggestions either before or after your selection.
As of early 2025, package author and Posit developer Simon Couch recommended Anthropic's Claude Sonnet for its R prowess.
You can set that as your default with options(.gander_chat = ellmer::chat_claude()).
You can also use ellmer as a chatbot to ask questions about R and run LLMs locally.
Collection
[
|
...
]