Тёмный

GitHub Copilot in Rstudio, it's finally here! 

R Consortium
Подписаться 20 тыс.
Просмотров 12 тыс.
50% 1

Thomas Mock, PhD, Workbench Product Manager at Posit PBC.
In this webinar, part of a new quarterly R/Med seminar series, Thomas demonstrates how to set up Copilot in RStudio and then provides examples of using it to generate code by providing context and comments. Some key points covered include:
- How Copilot works by predicting the next token based on context.
- Tips for using Copilot effectively, like breaking problems down simply, specifically, and using comments.
- Examples of Copilot generating functions, tests, and repeating tasks.
- Using other tools like Chatter to ask questions when stuck.
Main Sections
00:00 Intro
01:35 What is generative AI?
04:27 What is Copilot?
08:50 Copilot in RStudio
10:15 Get started
13:01 Getting the most out of the generative loop
15:14 Simple and specific
24:29 Getting stuck?
28:53 {chattr} package
31:17 Generative AI tools with Posit Workbench and RStudio
32:43 Examples using Copilot inside RStudio
51:42 Q&A and RStudio User Guide
More Resources
R Medicine Virtual Conference 2023: • R Medicine Virtual Con...
R Consortium www.r-consortium.org/
Blog: www.r-consortium.org/news/blog
Join: www.r-consortium.org/about/join
Twitter: / rconsortium
LinkedIn: / r-consortium
Mastodon: fosstodon.org/@RConsortium

Наука

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@gecarter53
@gecarter53 9 месяцев назад
Great overall presentation and intro to using Copilot with R. Anxious to try.
@BolloYang
@BolloYang 6 месяцев назад
Wonderful content and presentation. Thank you!!
@user-qy8bg1ws6t
@user-qy8bg1ws6t 9 месяцев назад
Hi, how did you set chattr to background job? I can set it to background job, but it will pop up as a new window in my browser. How to keep it in the viewer pane?
@christianengels9493
@christianengels9493 9 месяцев назад
chattr::chattr_app(as_job = TRUE) where as_job = TRUE will be set elsewhere as the default
@gecarter53
@gecarter53 9 месяцев назад
Discussion of {chatter} mentioned the prompt is enriched with ‘path to data files.’ Does this include paths to files stored locally on my laptop? Does the model ‘remember’ the data? Is this a potential security issue?
@logitfau252
@logitfau252 4 месяца назад
great one, so it has access to my packages and their manuals? Or do i still have to post snipets of examples from those manuals for it to understand?
@perevales
@perevales 8 месяцев назад
Great!, chattr requires a paid plan? With my free subscription is not working. Thanks.
@gecarter53
@gecarter53 9 месяцев назад
In an attempt to coach Copilot by using ‘expressive’ names to identify functions (and possibly other data objects), is there a possibility of running into a conflict with generally accepted naming/coding conventions? If so, how should this be resolved?
@ThomasMock
@ThomasMock 9 месяцев назад
You can always rename them after the fact. I often start with more verbose names and then dial back to adhere to my normal standards during development.
@planetary-rendez-vous
@planetary-rendez-vous 9 месяцев назад
Wow... finally some good fucking food. Really excited to see what I can do with it. Other languages had their new toys so fast R felt forgotten :(
@ringpolitiet
@ringpolitiet 9 месяцев назад
Live demos are hard, especially with generative AI. But at 37:46 to about 41:00, the problem is the user, not copilot. The suggested completion correctly prescribes "mpg" with quotes, which would have given the expected result given the function that was just generated (which obviously didn't have the embracing operator). The following minutes were also unimpressive, unnecessarily convoluting things and refusing to just add the {{ }} manually. This is exactly how not to use copilot, by refusing to code and instead deleting and regenerating until you get something that seemingly works, but is trash. If the user programs at this level, any tests they generate and are happy with when the test "passes" are similarly harmful. These tests proclaim to test the na.rm functionality, yet all the test values are the same regardless of the status of the flag? Okay. This demo could have gone better.
@ThomasMock
@ThomasMock 9 месяцев назад
Howdy! The goal was to try and guide Copilot to give the answer without me doing anything else on my end, and very quickly move through a number of examples. Doing live demos with a non-deterministic tool is definitely one of the harder things I've done, even after giving dozens of webinars. Ultimately when using a GenerativeAI tool, it SHOULD be used to enhance your existing knowledge/skills and not used as a replacement. As far as the tests, yep - very very basic and in some situations not even testing what I wanted, but boilerplate was mostly ok.
@ThomasMock
@ThomasMock 9 месяцев назад
I definitely agree that blindly accepting Copilot responses is bad. We want to always validate that the output is what we want, and it's often faster to edit a response than to try and get a full, complete example all at once.
@planetary-rendez-vous
@planetary-rendez-vous 9 месяцев назад
This just shows how frustrating it is to use chatGPT 3.5 when it spits code that is almost good but isn't and actually doesn't work as well and you have to tweak it.
Далее
{renv} For Reproducible Analyses
2:42:06
Просмотров 849
Nurse's dream !! 😂😂
00:17
Просмотров 5 млн
Coding with AI: 8 Tips for Using GitHub Copilot
29:59
Просмотров 1,5 тыс.
R vs Python
7:07
Просмотров 309 тыс.
Microsoft Copilot - Excel has forever changed
10:05
Просмотров 983 тыс.
I Tried Every AI Coding Assistant
24:50
Просмотров 727 тыс.
$1 vs $100,000 Slow Motion Camera!
0:44
Просмотров 10 млн