Installing R in Cursor (Part 1)

A fast and practical setup guide for using R in Cursor — and the first step toward running R in Jupyter Notebooks with Cursor.

Author

Affiliation

Franziska Ahrend

Published

June 01, 2025

Cursor is an AI-enhanced code editor built on VS Code. It offers smarter suggestions, faster development, and multi-language flexibility — including full support for R. If you're transitioning from RStudio, Cursor can dramatically improve your workflow with real-time coding help and seamless extension support.

While there are some resources that explain how to set up Cursor for Python, I couldn't find any resources that explain how to set up Cursor for R especially with Jupyter Notebook. This guide walks you through all the steps necessary.

This guide is the first part of a two-part series. In the second part, we'll take it even further by integrating R into Jupyter Notebooks — all inside Cursor.

Why I Switched to Cursor

Prerequisites

Make sure your system meets these basic requirements:

First, download Cursor from the official site:

Cursor IDE official website homepage showing download options and main features for R programming
Landing page of the Cursor official website: cursor.com

👉 Download Cursor

Installing Cursor

Download the installer for your system and follow the installation steps. Once installed, open Cursor to ensure it launches properly.

Setting Up R Integration

If you haven't installed R yet, grab it from CRAN. Recommended version: R ≥ 4.2.

Check your R version by typing:

R.version.string

Inside Cursor, create a new file ending with .R. Cursor should prompt you to install the R extension automatically.

Cursor IDE prompting to install R language extension for enhanced R programming support
Prompt to install R extension in Cursor

If no prompt appears, open the Marketplace (Cmd + B on Mac / Ctrl + B on Windows), search for "R Extension", and install the extension manually.

Cursor IDE Marketplace showing R language extension details and installation options
Marketplace in Cursor for R

After installing the extension, reopen your .R file. You're now ready to code in R inside Cursor — similar to RStudio but with smarter AI assistance.

"Cursor can predict the next line of code before you even know what you're about to type."

Subscribe to stay up to date on Bioinformatics news and trends.

* indicates required