AI assistant for RStudio

Ask about your data. Rgent writes the R.

A chat in RStudio's Viewer pane that sees your data and your open file, and runs the code it writes.

25 free requests. No card.

RStudio with Rgent open in the Viewer pane, next to an R Markdown document

The Viewer pane is live. Click a question, or try Fix error and Explain plot.

01

Knows your session

It reads your data frames, models and the file you're editing, so answers use your own column names.

What Rgent seescontext
salesdata.frame · 240 × 6
targetsdata.frame · 4 × 3
fitlm · revenue ~ units + product
report.Rmdcursor at line 14
02

Runs the code. Fixes what breaks.

Replies run in your R session. If something's missing, Rgent runs the chunk that makes it and tries again. Prefer to approve each run? Switch to Ask first.

Running in your sessionAuto-run
Error: object 'monthly' not found
Running chunk trend to create monthly
✓ Plot created
03

Edits you approve

Changes to your file show up as a diff. Accept, reject, or undo later.

report.Rmd · line 16proposed edit
16 − summarise(revenue = sum(revenue))
16 + summarise(revenue = sum(revenue, na.rm = TRUE))
RejectAccept & run
04

A Data Explorer that writes the code

Sort, filter and search any data frame, then click Code for the dplyr that gives those rows.

RStudio with Rgent open in the Viewer pane, next to an R Markdown document
Viewer · Rgentinteractive demo
05

Private by design

Chats are saved on your computer. Nothing you send is used for training.

What leaves your computer

Stays on your computerlocal
Saved chatsyour R user folder
Your datayour R session
Install

Three lines in the R console.

Opens in the Viewer pane and starts with RStudio.

Full install guide

install.packages("rstudioai", repos = c("https://nathanbresette.r-universe.dev", "https://cloud.r-project.org")) library(rstudioai) run_rgent()

Then enter the access code from your email. Rgent remembers it.

From people using it

“I was really impressed with the tool. Easy to install.”

Dr. Lyndon Walker, content creator

“As someone who is a part-time user of R, I've been waiting for something like this for a long time. Thank you.”

R user

“This is better than all other available AI for RStudio.”

Dr. Greg Martin, content creator
Pricing

25 free requests. Then from $10 a month.

Cancel any time.

See plans