R and RStudio Setup Guide — BA 3316

Installing R and RStudio

Read your platform's (macOS or Windows) steps all the way through once before you start. Then work the five parts in order — no computer experience needed.

Before you start

Set aside about 20 minutes. You will need your Mac password. Install R first, then RStudio — RStudio looks for R when it opens, so in the other order it won't work.

1

Check your chip and your macOS version

Macs come with two kinds of processor, and R comes in two matching versions. Download the wrong one and R either won't install or will run badly. Both checks happen in the same window.

  1. Look at the very top-left corner of your screen. Click the black Apple logo.
  2. In the menu that drops down, click About This Mac.
  3. A small window opens. Find the line starting with Chip or Processor, and match it below.
Apple Silicon

If the window says

Chip: Apple M1
(or M2, M3, M4 — plus any Pro, Max, or Ultra)

In Part 2 you download the file ending in -arm64.pkg

Intel

If the window says

Processor: Intel Core i5
(or i3, i7, i9, Xeon)

In Part 2 you download the file ending in -x86_64.pkg

If the window is confusing

See the word Apple next to a letter-and-number like M1 or M3? You're Apple Silicon. See the word Intel anywhere? You're Intel. Macs sold from late 2020 onward are almost all Apple Silicon.

Now check the macOS version, in that same window

Above the chip line you'll see macOS followed by a name and number — for example macOS Sequoia 15.5.

  • Sonoma (14), Sequoia (15), Tahoe (26), or anything newer — you're set. Continue to Part 2.
  • Ventura (13), Monterey (12), Big Sur (11), or older — stop here. The current R and RStudio won't run on your Mac. See “My Mac is too old” at the bottom of this page.

Write down your chip, then close the window with the red dot in its top-left corner.

2

Download and install R

R is the engine that does the computing. You'll almost never open it directly — but it has to be on the machine before RStudio will work.

  1. Open your web browser and go to cran.r-project.org
  2. Near the top of the page, click Download R for macOS.
  3. Find the section headed Latest release. It lists two download links. Click the one that matches Part 1:
    Apple Silicon

    R-4.6.1-arm64.pkg

    Listed as “For Apple silicon (M1,2,..) Macs”.

    Intel

    R-4.6.1-x86_64.pkg

    Listed as “For older Intel Macs”.

    Ignore everything else on that page. You do not need the tools, the sources, XQuartz, or anything labelled “development”, “patched”, or “next”.

  4. The file lands in your Downloads folder.
  5. Open a Finder window — the blue smiling-face icon in the Dock. Click Downloads in the left sidebar, then double-click the file you just downloaded.
  6. An installer window opens. Click Continue, then Continue, then Agree to the license, then Install.
  7. Your Mac asks for your password — the same one you use to log in. Type it and click Install Software. The box stays blank as you type; that's normal.
  8. Wait for it to finish, click Close, and say yes if it offers to move the installer to the Trash.

If a box asks for access to your Downloads folder, click OK

Partway through, macOS may ask whether the Installer can access files in your Downloads folder. Say yes. If you click “Don't Allow”, this install fails and you won't be able to install anything else from Downloads afterward — you'd have to move the file somewhere else to recover. This prompt is normal and expected.

You don't drag R anywhere

R arrives as an installer — a .pkg file — which puts R into your Applications folder for you. That's what the password was for. The dragging step is coming in Part 3, and it's for RStudio only.

Confirm it worked: in Finder, click Applications in the sidebar. You should see a folder called R with an app called R inside it. Leave it alone — RStudio uses it behind the scenes.

3

Download RStudio and drag it into Applications

RStudio is the program you'll actually use every day. One download works on both chips — the Apple-versus-Intel choice only mattered for R.

  1. Go to posit.co/download/rstudio-desktop
  2. Scroll to the step labelled 2: Install RStudio and click the big blue Download RStudio Desktop for Mac button.
  3. The file lands in Downloads. It ends in .dmg and is named something like RStudio-2026.08.2-200.dmg.
  4. In Finder, go to Downloads and double-click the .dmg file.
  5. A new window opens showing two icons side by side: the RStudio icon on the left and a folder named Applications on the right, usually with an arrow between them.
  6. Click and hold the RStudio icon, drag it on top of the Applications folder, and let go. A progress bar appears while your Mac copies it. Wait until the bar finishes and disappears.

Now do the step everyone skips

The window you just dragged from is not a folder on your computer. It's a temporary disk image — think of it as a CD your Mac pretended to insert. If you open RStudio by double-clicking the icon in that window, you're running the program off the pretend CD instead of off your computer. It looks fine, until you restart your Mac or the image gets ejected. Then RStudio vanishes, your settings are gone, and you're stuck mid-assignment.

Dragging it to Applications is what actually installs it. Ejecting is what proves you did.

  1. Close the disk-image window.
  2. Look at the left sidebar of any Finder window. Under Locations there's an entry named RStudio with a small eject symbol (⏏) beside it. Click that eject symbol. The entry disappears. RStudio now lives on your computer, not on the pretend disk.
  3. Go back to Downloads and drag the .dmg file to the Trash. You won't need it again.
4

Open RStudio once — and only once this way

Today is the only day you'll launch RStudio from the Applications folder. After the project walkthrough, you'll open it a different way every single time.

  1. In Finder, click Applications in the sidebar. Can't find it? Use the menu bar at the top: Go → Applications.
  2. Find RStudio in the list and double-click it.
  3. The first time only, your Mac warns you that RStudio was downloaded from the internet and asks whether you're sure. Click Open.
  4. Let it finish loading, confirm you can see the Console pane on the left, and run the check in Part 5. Then you're done with this route.

From next time on, open the .rproj file instead

During the project-guide walkthrough you'll build your course folders and create a file called Project.Rproj inside the Project folder. That file is your front door from then on: double-click Project.Rproj and it opens RStudio and tells it which folder you're working in.

That second half is the part that matters. Launching RStudio on its own leaves it pointing at some arbitrary folder, so your scripts go looking for data/ and out/ and can't find them — you get file-not-found errors even though your code is perfectly correct. Opening the project first makes those paths work.

So the rule is

Today: Applications → RStudio, once, to confirm it installed. Every day after: double-click Project.Rproj. You'll rarely need the Applications folder again.

5

Check that you got the right version of R

Thirty seconds now saves an afternoon later. This proves the download in Part 2 matched the chip in Part 1.

  1. In RStudio, find the large pane on the left labelled Console.
  2. Click into it, type the line below exactly as written, and press Return.
> R.version$platform

R prints one line straight back. Match it against your branch:

Apple Silicon

"aarch64-apple-darwin20"

Anything containing aarch64 or arm64. Correct if Part 1 said Apple.

Intel

"x86_64-apple-darwin20"

Anything containing x86_64. Correct if Part 1 said Intel.

If it doesn't match

Go back to Part 2, download the other file, and install it right over the top. Nothing breaks — the new install simply replaces the old one. Then quit RStudio completely (RStudio → Quit RStudio) and open it again.

?

If something goes wrong

Almost every Mac setup problem is one of these. Click a line to open it.

“RStudio can't find an installation of R.”

R is either missing or was installed after RStudio. Do Part 2, then quit RStudio completely and open it again.

The R installer says it can't be installed on this computer.

You downloaded the wrong chip version. Go back to Part 1, recheck, and get the other file in Part 2.

RStudio is very slow, or packages fail with strange errors.

Usually an Apple Silicon Mac running the Intel version of R. Run the check in Part 5.

“RStudio is damaged and can't be opened.”

The download was interrupted. Delete RStudio from Applications, download the .dmg again, and redo Part 3.

My Mac is too old — it's on Ventura, Monterey, or Big Sur.

The current versions need macOS 14 (Sonoma) or newer. You have two options: update macOS if your Mac supports it (Apple menu → System Settings → General → Software Update), or install older, compatible versions of R and RStudio. Come to office hours for the second option — don't guess at which older version to grab.

I clicked “Don't Allow” on the Downloads-folder box, and now nothing installs.

Move the .pkg file out of Downloads — drag it to your home folder or the Desktop — and double-click it there. To fix it properly: System Settings → Privacy & Security → Files and Folders, find Installer, and turn Downloads back on.

I can't find the Applications folder.

Open Finder, then use the menu bar at the very top of the screen: Go → Applications.

Still stuck

Bring your laptop to office hours. Don't spend more than 30 minutes fighting this alone — that's what office hours are for.

Install R before RStudio · drag RStudio into Applications · eject the disk image · after today, open Project.Rproj