Anaconda RStudio: How to Download & Install on Windows/Mac

โšก Smart Summary

RStudio is the integrated development environment most R users work in, and Anaconda can supply R, RStudio and their packages from one conda installation. Both installation routes are walked through below for Windows and macOS.

  • ๐Ÿ”˜ Two routes: Install R from CRAN plus RStudio from Posit, or let Anaconda manage both through conda.
  • โ˜‘๏ธ Order matters: RStudio is an editor only, so a working R installation must exist first.
  • โœ… Anaconda setup: The graphical installer runs on macOS and Windows and keeps every package inside one folder.
  • ๐Ÿงช Packages: The r-essentials bundle installs R together with roughly two hundred common data science packages.
  • ๐Ÿ› ๏ธ Verification: Running summary(cars) in a script confirms that R and RStudio are talking to each other.
  • โš ๏ธ Channel notice: Anaconda stopped maintaining its R channel on 4 November 2025, so conda-forge or CRAN is now the current source.

How to Download and Install RStudio in Anaconda

What is R?

R is a programming language for statistics and data analysis. To work in R comfortably, we also install an Integrated Development Environment (IDE). RStudio is the most widely used IDE for R because it is user-friendly and open source, and it is one of the applications Anaconda can install for you.

RStudio is developed by Posit, the company formerly called RStudio, PBC. It is an editor rather than a language, so it needs an existing R installation to run against โ€” RStudio Desktop requires R 3.6.0 or newer.

What is Anaconda?

Anaconda is a free, open-source distribution of both Python and the R programming language. It is widely used in the scientific community and by data scientists to carry out machine learning projects and data analysis.

Why use Anaconda?

Anaconda helps you manage all the libraries required for Python and R in one place. It installs the libraries and the IDE into a single folder to simplify package management. Otherwise, you would need to install each piece separately.

โš ๏ธ Version note (2025): Anaconda deprecated its R channel on 4 November 2025 and no longer ships new R versions, package updates or security fixes there. Existing packages stay downloadable and existing environments keep working, but for a current R stack Anaconda now points users at conda-forge or a native CRAN installation. Every conda command below still runs; just expect older package builds from the r channel.

Install R and RStudio Without Anaconda

If you only want R and RStudio and not the wider conda toolchain, the two-installer route is shorter and always current. It is also the route Posit documents.

  • Step 1) Install R first. Download the installer for your operating system from CRAN and run it with the default options. RStudio cannot start without it.
  • Step 2) Install RStudio Desktop. Download the free Open Source edition from the Posit download page. Windows needs a 64-bit Windows 10 or newer, and macOS needs Sonoma (14) or newer.
  • Step 3) Launch RStudio. It detects the R installation automatically and shows the R version in the Console when it opens.

To confirm that the two are connected, type one line in the Console:

# Type this in the RStudio Console after installing
R.version.string   # reports the R build RStudio is attached to

Choose Anaconda instead when you also work in Python, when you want conda to resolve package dependencies for you, or when your team already standardises on conda environments. The Anaconda walkthrough starts below.

How to Install RStudio in Anaconda

Anaconda bundles R, RStudio and the conda package manager, so a single installer covers the whole toolchain. The diagram below shows how those pieces fit together.

Diagram of the Anaconda platform bundling R, RStudio and conda package management

How to Install RStudio in Anaconda for Mac

Below are the steps to install RStudio in Anaconda for Mac:

Step 1) Download Anaconda for your operating system.

Go to the Anaconda Distribution download page and download the installer.

By default, Chrome selects the download for the system you are browsing from. This walkthrough installs Anaconda on macOS; on Windows or Linux, pick the Windows or Linux installer on the same page. The screenshots below were captured on an older release that shipped Python 3.6, so the version numbers on your download page will be higher โ€” the steps themselves are unchanged.

Anaconda download page in Chrome with the macOS graphical installer selected

Step 2) Start the Anaconda installation.

You are now ready to install Anaconda. Double-click the downloaded file to begin. The file is a .dmg on macOS and an .exe on Windows. You will be asked to confirm the installation. Click the Continue button.

macOS installer confirmation dialog asking permission to run the Anaconda package

You are redirected to the Anaconda3 Installer.

Anaconda3 Installer welcome screen on macOS with the Continue button highlighted

Step 3) Continue with the installation process.

The next window displays the ReadMe. After you have read the document, click Continue.

Anaconda3 Installer Read Me screen listing what the package installs

Step 4) Read the End User Agreement.

This window shows the Anaconda End User License Agreement. Click Continue to move on.

Anaconda3 Installer showing the End User License Agreement text

Step 5) Click the Agree button.

You are prompted to agree. Click Agree to go to the next step.

macOS prompt asking the user to Agree to the Anaconda license terms

Step 6) Locate the installation path.

Click Change Install Location to set the location of Anaconda. By default, Anaconda is installed in the user environment: Users/YOURNAME/.

Anaconda3 Installer destination screen with the Change Install Location button

Select the destination by clicking Install for me only. That means Anaconda will be accessible only to this user.

Installation type screen with the Install for me only option selected

Step 7) Start installing Anaconda.

Click Install to proceed. The screenshot below quotes around 2.5 GB of disk space; current Anaconda Distribution releases need considerably more, and the installer always prints the exact figure for the build you downloaded on this screen.

Anaconda3 Installer ready to install, showing the disk space required

A message box appears. Confirm by typing your password, then hit Install Software.

macOS password prompt confirming the Anaconda software installation

Installation may take a while, depending on your machine.

Anaconda3 Installer progress bar during package installation on macOS

Step 8) Install VS Code if you want.

Anaconda asks whether you want to install Microsoft VS Code. You can ignore it and hit Continue.

Anaconda3 Installer offering the optional Microsoft VS Code installation

Step 9) Finish the installation.

The installation is complete. You can close the window.

Anaconda3 Installer summary screen confirming the installation succeeded

You are asked whether you want to move the “Anaconda3” installer to the Trash. Click Move to Trash.

macOS dialog offering to move the Anaconda3 installer to the Trash

You are done with the installation of Anaconda on a macOS system. The Windows sequence follows the same nine ideas through a different wizard.

How to Install RStudio in Anaconda for Windows

Here are the steps to install RStudio in Anaconda for Windows:

Step 1) Open the downloaded exe and click Next.

Anaconda Windows setup wizard welcome screen with the Next button

Step 2) Accept the License Agreement.

Anaconda Windows setup wizard showing the license agreement to accept

Step 3) Select Just Me and click Next.

Anaconda Windows setup wizard with the Just Me installation type selected

Step 4) Select the Destination Folder and click Next.

Anaconda Windows setup wizard destination folder selection screen

Step 5) Click Install on the next screen.

Anaconda Windows setup wizard advanced options screen before installing

Step 6) Installation will begin.

Anaconda Windows setup wizard progress bar during installation

Once it is done, Anaconda is installed. Anaconda ships conda, not R itself, so R is the next thing to add.

How to Install R

Install R on Mac

Here is a step by step process to install R on Mac:

Step 1) Confirm where Anaconda was installed.

Anaconda uses the terminal to install libraries, and the terminal is the quickest way to do it. We need to point the installation at the right path. In our case, Anaconda was installed under Users/USERNAME/, which we can confirm by checking the anaconda3 folder.

Open Computer and select Users, then USERNAME, then anaconda3. That confirms Anaconda landed on the right path. To see how macOS writes the path, right-click the folder and choose Get Info.

macOS Finder window showing the anaconda3 folder inside the user directory

Select the path shown under Where and click Copy.

macOS Get Info panel showing the Where path of the anaconda3 folder

Step 2) Open the terminal.

The shortest way is to use Spotlight Search and type terminal.

macOS Spotlight Search used to open the Terminal application

The terminal sets the default working directory to Users/USERNAME. As the figure above shows, the path of anaconda3 and the working directory are identical. In macOS, the current folder is shown before the $ prompt. The terminal will install all the libraries in this working directory.

If the path you copied does not match the working directory, change it by writing cd PATH in the terminal, where PATH is the path you pasted into the text editor. Wrap PATH in quotation marks if it contains spaces. This changes the working directory to PATH.

macOS Terminal prompt showing the default working directory for the user

Step 3) Install R.

We are ready to install R. Installing all packages and dependencies with the conda command in the terminal is the simplest route.

## In the terminal
conda install r-essentials --yes

r-essentials means conda will install R together with the libraries a data scientist normally needs. The bundle carries roughly two hundred popular packages, including IRkernel, dplyr, shiny, ggplot2, tidyr, caret and nnet.

Terminal running the conda install r-essentials command

Conda begins downloading the libraries.

It takes some time to fetch all of them, so be patient.

Terminal listing the R packages conda is downloading for r-essentials

In the terminal, you should see Executing transaction: done. If so, R is installed.

You can then check where R is located.

Terminal showing Executing transaction done after the R installation

Tip: Anaconda now documents installing R into its own environment rather than the base environment, which keeps an R upgrade from disturbing your Python packages:

# Create an isolated conda environment for R
conda create --name r_env r-essentials r-base

# Switch into it before installing anything else
conda activate r_env

Install R on Windows

Following is a step by step process to install R on Windows:

Step 1) Open the Anaconda command prompt.

Windows Start menu with the Anaconda Prompt application selected

Step 2) In the command prompt:

  1. Enter the R install command
  2. The environment is resolved
  3. The list of packages to be installed is displayed

Anaconda Prompt listing the R packages that conda plans to install

Step 3) Enter y and hit the return key to start the installation.

Anaconda Prompt after entering y to confirm the R package installation

Step 4) Installation takes a while, and finishes with a done message.

Anaconda Prompt showing the done message at the end of the R install

How to Install RStudio

With R in place, RStudio can be added from the same conda environment.

Mac User

In the terminal, write the following code to install RStudio through Anaconda:

## In the terminal
conda install -c r rstudio --yes

macOS Terminal running the conda install rstudio command

In the terminal, you should see Executing transaction: done. If so, RStudio is installed.

You are all set. Note that -c r selects the deprecated Anaconda R channel; substitute -c conda-forge, or install RStudio Desktop from Posit, if you want a current build.

Windows User

Step 1) Enter the command to install RStudio at the Anaconda prompt.

Anaconda Prompt with the RStudio installation command entered

Step 2) You are shown a list of packages that will be installed. Enter y.

Anaconda Prompt showing the RStudio package list awaiting confirmation

Step 3) RStudio is installed.

Anaconda Prompt confirming that RStudio has finished installing on Windows

Warning: Avoid installing R or RStudio libraries with pip for Python inside a conda environment. Conda packages already gather a lot of dependencies, and mixing the two package managers in one environment is the most common cause of broken R installations under Anaconda.

Run RStudio

Run the command line directly from the terminal to open RStudio: open the terminal and write rstudio. You can also launch it from a desktop shortcut.

macOS Terminal launching RStudio by typing the rstudio command

Alternatively, start RStudio from the Anaconda Navigator shortcut shown below.

Anaconda Navigator desktop shortcut used to launch RStudio

A new window opens with RStudio.

RStudio opening with its Console, Environment and Files panes visible

Test the RStudio Installation

Open RStudio from the terminal and open a script. Write the following command:

## In RStudio
summary(cars)
  1. Click Run
  2. Check the output in the Console

RStudio script pane running summary(cars) with the output shown in the Console

If you can see the summary statistics, it works. You can close RStudio without saving the files.

Install an R Package with Conda

Installing a package with Anaconda is straightforward. Go to your browser and type the name of the library followed by anaconda r.

Browser search results for an R package on the anaconda.org repository

Choose the link that points to anaconda.org, then copy the install command shown on the package page and paste it into the terminal.

anaconda.org package page showing the conda install command to copy

For instance, to install randomForest for the tutorial on random forest, go to the r-randomforest package page.

anaconda.org page for the r-randomforest package with its install command

Run conda install -c r r-randomforest –yes from the terminal. Conda package names for R libraries carry an r- prefix, which is why the CRAN package randomForest becomes r-randomforest here.

Terminal completing the conda install of the randomForest package

The installation is complete.

Throughout this tutorial you will not need to install many libraries, because the most used ones already come with the r-essentials conda bundle. It includes ggplot2 for graphs and caret for the machine learning project.

Open a Library in RStudio

To run the R function randomForest(), we need to load the library that contains the function. In the RStudio script, we write library(randomForest).

## In Rstudio
library(randomForest)	
## randomForest 4.6-12	
## Type rfNews() to see new features/changes/bug fixes.	

The version line printed here comes from the build that was installed when the screenshots were taken, so your console will show whichever randomForest version conda resolved.

Warning: Avoid loading unnecessary packages. Two packages that export the same function name will mask each other, and the one loaded last wins.

Run R Code in RStudio

There are two ways to run code in R.

Method 1) Run code in the Console. Data is stored in the Global Environment, but no history is recorded. The results cannot be reproduced once R is closed, because the code has to be typed again. This method is not recommended when you want to save or repeat your work.

RStudio Console with commands typed directly at the prompt

Method 2) Write the code in a script. A script holds as many lines as you want. To run it, select the rows you want to execute and click Run. The output appears in the Console, and the script can be saved and reopened later, so the work is not lost.

RStudio script editor with several lines selected before clicking Run

Warning: If you place the cursor on the second row (for example, slice_vector[1:5]) and click Run, the Console displays an error, because line 1 was never executed and the object does not exist yet.

RStudio Console showing an error because the first line was never run

Similarly, if you place the cursor on an empty row and click Run, R returns an empty output. Once the setup is confirmed, the next steps are learning the data types and operators the language is built on, branching with if and else, and drawing a first chart with ggplot2 or boxplot().

RStudio returning empty output after Run was clicked on a blank line

FAQs

Yes. RStudio Desktop is available as a free, open-source edition under AGPL. Posit also sells commercial desktop and server editions that add support and licensing terms, but the open-source build has the full IDE feature set.

Under conda, run conda update r-base and conda update –all inside the R environment. With a CRAN install, download the newer R installer and run update.packages(ask = FALSE) in the Console afterwards.

RStudio scans standard locations at startup. If R was installed after RStudio, or into a custom folder, point it manually through Tools then Global Options then General, and restart. A 32-bit versus 64-bit mismatch causes the same symptom.

Yes. A single environment can hold r-base and python together, which is how R and Python cells run side by side in Jupyter. Keeping them in separate environments avoids dependency clashes on larger projects.

Not usually. Choosing Just Me or Install for me only writes into your user folder and needs no administrator password. A machine-wide installation, and RStudio on some managed Windows builds, does require administrator access.

Install IRkernel, which ships inside the r-essentials bundle, then launch Jupyter from the same environment. R appears as a kernel option when you create a new notebook, alongside Python.

AI assistants read installer and conda error text, identify the missing dependency or channel conflict, and suggest the exact command to run. They are also useful for translating package names between CRAN and conda naming.

Yes. RStudio 2023.09.0 and later include a GitHub Copilot integration that completes R code inline. It needs a Copilot subscription, and administrators must enable it on RStudio Server or Posit Workbench.

Summarize this post with: