{"id":151494,"date":"2024-04-10T13:38:06","date_gmt":"2024-04-10T17:38:06","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=151494"},"modified":"2025-01-29T17:58:24","modified_gmt":"2025-01-29T22:58:24","slug":"rstudio","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/support\/research\/software-and-programming\/generative-ai\/rstudio\/","title":{"rendered":"GenAI in RStudio"},"content":{"rendered":"<p><a name=\"top\"><\/a><\/p>\n<style>\n  p { text-align: justify; }\n  .image-container { float: right; width: 20%; margin-left: 10px; }\n<\/style>\n<div style=\"width: 100%;\">\n<div class=\"image-container\"><img loading=\"lazy\" src=\"\/tech\/files\/2025\/01\/RStudio.png \" alt=\"\" width=\"300\" height=\"300\" class=\"alignnone wp-image-151565\" \/>\n<\/div>\n<p>RStudio is a robust and user-friendly integrated development environment (IDE) specifically designed for R programming. With RStudio, you can take advantage of advanced functionalities such as syntax highlighting, which makes your code more readable, and code completion, which helps you write code faster and with fewer errors. Reference the official <a href=\"https:\/\/docs.posit.co\/ide\/user\/ide\/guide\/tools\/copilot.html\">RStudio User Guide<\/a> for full implementation instructions.<\/p>\n<p><strong>Sections<\/strong><\/p>\n<ul>\n<li><a href=\"#install\">Install GitHub Copilot<\/a><\/li>\n<li><a href=\"#login\">Log into GitHub<\/a><\/li>\n<\/ul>\n<p><a name=\"install\"><\/a><\/p>\n<h2>Install GitHub Copilot<\/h2>\n<ol>\n<li>Start RStudio using SCC OnDemand. Refer to our <a href=\"https:\/\/www.bu.edu\/tech\/support\/research\/software-and-programming\/common-languages\/r-basics\/#ONDEMAND\">Quick Start Guide to using R on the SCC<\/a> for detailed instructions.<\/li>\n<li>Navigate to Tools > Global Options > Copilot<\/li>\n<li>Check the box &#8220;Enable GitHub Copilot&#8221;<\/li>\n<li>Download and install the Copilot Agent components<\/li>\n<\/ol>\n<p><a name=\"login\"><\/a><\/p>\n<h2>Log into GitHub<\/h2>\n<ol>\n<li>In the GitHub Copilot dialog box: click the &#8220;Sign In&#8221; button and copy the verification code<\/li>\n<li>Click on the login link, paste the verification code, and click &#8220;Continue&#8221;<\/li>\n<li>Approve the permissions by clicking &#8220;Authorize GitHub Copilot Plugin&#8221;<\/li>\n<li>After approval, your RStudio will show the signed-in user<\/li>\n<li>Close the Global Options dialog box, open a source file (e.g. *.R) and start coding with Copilot!<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<div style=\"float: right;\">\n<p id=\"last-modified-timestamp\" style=\"margin: 0;\">Last updated: Loading&#8230;<\/p>\n<\/div>\n<p><script>\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n    \/\/ Get the content of the meta tag\r\n    var lastUpdatedContent = document.querySelector('meta[name=\"last-updated\"]').content;\r\n    \r\n    \/\/ Parse the content into a Date object\r\n    var lastUpdatedDate = new Date(lastUpdatedContent);\r\n    \r\n    \/\/ Format the date\r\n    var formattedDate = lastUpdatedDate.toLocaleDateString(undefined, { year: 'numeric', month: 'long', day: 'numeric' });\r\n    \r\n    \/\/ Update the HTML element with the formatted date\r\n    document.getElementById('last-modified-timestamp').innerHTML = 'Last updated: ' + formattedDate;\r\n});\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RStudio is a robust and user-friendly integrated development environment (IDE) specifically designed for R programming. With RStudio, you can take advantage of advanced functionalities such as syntax highlighting, which makes your code more readable, and code completion, which helps you write code faster and with fewer errors. Reference the official RStudio User Guide for full&#8230;<\/p>\n","protected":false},"author":1692,"featured_media":0,"parent":151490,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/151494"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1692"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=151494"}],"version-history":[{"count":31,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/151494\/revisions"}],"predecessor-version":[{"id":155629,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/151494\/revisions\/155629"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/151490"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=151494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}