Beyond Microsoft Products: other IDEs and assistants
Many IDEs now have AI tools built in.
RStudio has Github copilot for inline code completion. Add #comments right into your script and watch copilot try to write code. Works likes a multiline typeahead.
Positron/VS code can provide access to a variety of model providers and models. Note that you will need to have API access (e.g. setting up an API for Anthropic) and (often) pay a nominal fee for service. As of January 2026, both VS Code and Positron can be configured to use Github Copilot as a model provider, which provides a fairly generous free tier for academics. Applications include inline code completion, editing and agent mode as well as exploratory data analysis.
This is not an exhaustive list. Eclipse, JetBrains, Visual Studio, and Xcode also have integrated AI tools. If you prefer or are familiar with one of those, start there.
The AI assistants available will depend on your IDE, 2 popular plugins for VS code include:
Both tools are also available as command line interfaces (CLIs) if you want to use them outside of VS Code. The number of landscape of coding agents is expanding rapidly, so keep exploring.
Model service providers
- Include companies that have developed the models (e.g. OpenAI, Anthropic, Google) as companies that have contracts to source models from different providers (e.g. Openrouter, Copilots).
- Generally the free tier is small to non-existent.
- Paying for access to the API is different billing system than subscribing to a higher tier of the brower-based chat service. For example, if you are already have a chatGPT plus subcription, you still need to set up and fund an API account with OpenAI to use the integrated code development features.
Github Copilot
- If you’re a student or educator interested in using LLM’s for coding, this is the thing you should sign up for first. There’s also a free tier anyone can try. Students and educators get free access to Github Copilot Pro through GitHub Education. Note it can take a few days to get verified through GitHub Education, and can be a bit of a hassle but it is definitely worth it! Github Copilot supports [multiple AI models] (https://docs.github.com/en/copilot/reference/ai-models/supported-models).
It’s confusing, because github is now owned by Microsoft! The ‘Copilot’ that shows up on your windows machine and offers to help you with various tasks is a different (and much less useful, IMO) beast.
- Openrouter allows you to pay one fee to access multiple models from different providers (similar to copilot). I believe the context window is larger than with Copilot, so performance may be better. Have not tried it out.
Anthropic’s Claude
- In my experience the best at coding in R. Also surprisingly good at Google Earth Engine. The API is not free but you can sign up for $5 of tokens to try it out.
OpenAI’s ChatGPT
- The classic. The API is not free though you may get some complementary tokens when you sign up.
Google’s Gemini
- You can try out gemini for free. The privacy is not the greatest. Apparently good at images/videos.
Further Resources
Today’s quickstart demo’s give you some idea of how to use these tools, but to learn more, check out the following resources:
The official RStudio GitHub Copilot user’s guide is here: RStudio Copilot Guide.
When enabled, grey “ghost text” will appear as you type. Accept the suggestion by pressing tab or select Enter/Return to ignore the suggestion. I often find the suggestion is 80% correct and it’s faster to accept an incorrect suggestion and then edit it to have the correct content than to do all the typing myself.
This youtube video demos using Github Copilot in Rstudio.
LLM chat is also possible in R/RStudio, via the ellmer package. To use LLM chat features, you must set up an API key to access models. API keys are available from Anthropic (Claude), OpenAI (ChatGPT), or Google (Gemini). Some are not free. Confusingly, an upgraded plan on ChatGPT etc that would allow you to used more advanced models through the browser does NOT cover the API tools.
See the ellmer documentation, slides from a short-course or this helpful youtube video for more information. I personally find the interface not as useful as VS Code/Positron (see other tab).
Positron has two major AI pair programming tools. Positron Assistant provides dedicated chat pane for coding, troubleshooting and planning, inline chat, or for code completion. Databot is Posit’s (still somewhat exploratory) data analysis AI tool that can help you explore and visualize data.
This blog has some helpful tips, as does the corresponding instructional video How to use GitHub Copilot (the complete beginner’s guide)
There are extensive how-to documents about GitHub copilot with VScode here. The prompt engineering section is particularly helpful.

