Since I obtained the GitHub Education student certification, working with IDEs equipped with Copilot has been incredibly enjoyable. I wondered if RStudio could also use Copilot, and indeed it can; I set it up immediately.
Preparation
-
1. You need a GitHub account with a Copilot subscription. If you are a student, you can apply for student certification and use it for free.
-
2. RStudio version: Desktop 2023.09.0 and later.
-
3. You need to access the internet through a proxy.
Configuration
The setup is relatively straightforward; just follow the steps in the official documentation, and if all goes well, you’ll be coding happily.


Problems Encountered
When clicking Sign in
, after a while of Signing in
with no response, the issue was that I needed to configure a proxy. The solution is to add the proxy address in the ~/.Renviron
file as COPILOT_PROXY_URL=<url>
, replacing url
with your local proxy address.
Reference Articles
-
1. Official guide for configuring Copilot in RStudio: https://docs.posit.co/ide/user/ide/guide/tools/copilot.html
-
2. Apply for educational certification: https://github.com/education
-
3. GitHub student certification guide: https://github.com/JimmyLing233/Github-Student-Certification-Guide