Copilot or similar tool integration in R Studio - plans?

I have a significant investment into more than a decade's worth of teaching R at introductory and advanced levels in bioinformatics and related domains, with R Studio. Of course, this all needs to be completely rewritten from the ground up this year, because of ChatGPT and Copilot and related AI-tools.

The basic decision that I need to make within the next six to eight weeks or so is: do I wait for availability within RStudio, or do I switch my courses to Visual Studio? What's the word on this?

Thanks!
Boris

(If you ARE Posit, you're welcome to contact me off-list for background.)

5 Likes

I thought this was going to be a post saying you were going to stop using RStudio if they stuck Copilot in there, which is what I'd recommend. Its ethically suspect:

and I don't think a company, especially one that claims to be working for the public good, should dirty itself with association with such ethically poor entities. But hey, if there's money in it, it'll happen, or someone else will write an integration...

:slight_smile:
Let's not make this a copyright thread, shall we? That's not the point. It would be unethical to not teach students the practice that they are going to use in the "real world"; after all they are investing into what they believe is a cutting edge education. It's not me who makes that decision, it's they.

So I'm genuinely curious how Posit sees this.

Cheers,
Boris

4 Likes

I could be wrong, but I believe that its Github Copilot themselves that developed their integration via the use of extensions for VS Code (also Jetbrains IDE and Neovim) ; Rstudio IDE has long supported 'addins'; Perhaps you could contact Github Copilot and ask for such an an addin for your preferred platform? or could you start an open source project to develop one ? (I don't know about the legalities of that).

RStudio won't support Copilot anytime soon. RStudio is free and open source, whereas Copilot is a proprietary Microsoft technology, and Microsoft only licenses it for use with their official, closed-source software and plugins. The few third-party plugins that exist function by ripping off binaries from the official plugins, which of course isn't something we're going to do.

There is a possibility that Microsoft and Posit will come to some agreement that permits Copilot inside RStudio, and there is also a possibility that RStudio will implement a Copilot-like AI programming assistant using open data and technologies. However, neither of these are likely to land in the next 6 months (and certainly not in the next 6-8 weeks), so if Copilot integration is a requirement for you, VS Code is the way to go.

A few links that might be helpful:

This 3rd party plugin provides ChatGPT integration into RStudio. It's not as slick as Copilot integration -- you have to be more specific about your intentions, etc. -- but it's pretty cool. If you have your students on an RStudio Server, you could have it preinstalled.

There's also this Github issue requesting Copilot support in RStudio -- feel free to comment/upvote.

3 Likes

There is also the {gpttools} package specific to R use - GitHub - JamesHWade/gpttools: gpttools extends gptstudio for package development to help you document code, write tests, or even explain code

2 Likes

Thanks for the perspective Jonathan. I really appreciate it. I think I'll see if a hybrid solution will work, where we'll have VS and RStudio pointing to the same project folders.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.

Good news! RStudio now supports Copilot. We've introduced integration between RStudio and GitHub Copilot, which will be available in the upcoming Desert Sunflower release. This is still in development and QA, but if you're eager to try It out, check out the latest Desert Sunflower daily builds at dailies.rstudio.com. Please note that these builds are meant for test and development purposes only, not production.

If you find a bug or have an enhancement request, please open a new issue. We're glad to get these if you're very experienced with Copilot, a novice, or anywhere in between.

You can take advantage of Copilot in RStudio by turning it on with Tools -> Global Options -> Copilot -> Enable Github Copilot

11 Likes

As of 2023-09-26, GitHub Copilot is now available as a preview feature in RStudio 2023.09.0. Copilot support is expected to be generally available in RStudio desktop, RStudio server and Posit Workbench in a future release. To provide feedback or report bugs, please open a GitHub Issue on the RStudio repo. For more information about using GitHub Copilot in RStudio, please see the GitHub Copilot section in the RStudio User Guide.

If you would rather use a Chat-style interface, please see the {chattr} package. chattr is an interface to LLMs (Large Language Models). It enables interaction with the model directly from the RStudio IDE. chattr allows you to submit a prompt to the LLM from your script, or by using the provided Shiny Gadget.

3 Likes