Github Copilot is an AI-powered coding assistant that is integrated into R Studio, helping you to write code faster and with greater ease by suggesting lines of code, entire functions, or even generating snippets based on comments or the context of the code being written. The comments that you put with "# comment" in fact then work as a AI prompt to get a suggested snippet of code in R for what you describe that you are going to do. It also "sees" your data causing it to use the right variable names etc.
As a university employee or university student (of any university) you can apply for free education access to Github Copilot, normally it is 10 eur per month
Note that it takes 3-5 days for Github Copilot for Education to approve your registration, so do this right away if you need it for example for an upcoming course. Apply for approving your Github account to an education discount (=free) at this link
For an application as a student, you need to first download you Statement of Enrollment at our university at the Student Portal. This statement you need to upload with your application. For application as a staff member with a P number you can upload a scan or photo of a recent salary slip with the numbers (amounts, bank account etc) crossed out with a black marker. But make sure that you name and address need to be visible. If you have not (yet) received a salary, you may use the registration email that you received for you P account, with confidential information crossed out.
When you have gained access to Github Copilot, you can activate it by signing in to it in RStudio in menu Tools/Global options/Github Copilot.