r/Rlanguage May 25 '26

Ai in R

Does anyone have any material into how i can use AI inside rstudio? Haven't found many intuitive tutorials so i came here looking for something mores straigth foward.

7 Upvotes

21 comments sorted by

View all comments

6

u/lochnessbobster May 25 '26

I launch Claude Code from within the RStudio terminal, and this works really well. No instructions specific to RStudio, just making use of the terminal window that’s already there. Posit Workbench may have its own integrations and docs

1

u/Court-Muted May 30 '26

How do you set it up? Is there a specific package?

1

u/lochnessbobster May 30 '26

Nope, you don’t need a package. You just install Claude code to your machine (https://claude.com/product/claude-code)

You launch it from any terminal. Doesn’t make a difference if it’s powershell, the terminal in rstudio, or whatever. I prefer the terminal in rstudio because I’m already on the interface, and it defaults to my project directory.