Skip to content

Speedy way to update RStudio, R, (and many other tools) #41

Description

@genevaneva

@wibeasley @DavidBard @akanagwa I found a way to make installing and updating R and RStudio much faster and easier via command line — no searching for and manually downloading and installing. (I recently learned about the Scoop package manager and am a big fan!)

Note: Scoop installs programs to C:\Users\<you>\scoop\apps\ rather than C:\Program Files\. If you're comfortable with that, the setup below handles everything. If you'd prefer Program Files, see the alternative setup at the bottom.

Setup

Paste this entire block into PowerShell and press Enter:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
scoop bucket add extras
scoop install extras/rstudio

What each line does:

  • Line 1: Allows your system to run installation scripts
  • Line 2: Installs Scoop (a package manager for Windows)
  • Line 3: Adds the extras bucket (needed for RStudio)
  • Line 4: Installs RStudio — R is installed automatically alongside it

Updating R and RStudio

When a new version of RStudio or R is available, open PowerShell and run:

scoop update *

That's it. This updates Scoop itself, R, and RStudio all at once. RStudio will automatically detect the updated R on next launch.


Alternative Setup (Program Files)

If your organization requires programs to live in C:\Program Files\, use this setup instead. It uses rig to manage R (which installs to Program Files) and winget for RStudio:

First-time install:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
scoop install rig
rig add release
rig default release
winget install Posit.RStudio

To update:

scoop update rig
rig add release
rig default release
winget upgrade --id Posit.RStudio

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions