Skip to content
R for the Rest of Us Logo

Using Git and GitHub with R

Update Everything

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  1. Update R

  2. Update RStudio

  3. Update/re-install all of your R packages

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Matt M

Matt M • October 17, 2021

at 1:15 and 2:45, you mention "link below" for R and RStudio. I don't see link below (but obviously could still get there).

When updating packages, several keep showing up as having newer versions available. gtsummary, insight, prismatic, rvest, and usethis. I've hit Select All and Install Updates several times. But when I click on Update Packages again, the same 5 show up.

Matthew Reichardt

Matthew Reichardt • October 18, 2022

Often when I update packages, not everything updates, so if I click on update packages again, I still see some listed. Sometimes I can manually remove them and manually re-install them, but that doesn't always work. For example, after I updated R and RStudio, and then ran update packages, I am still seeing commonmark has an installed version of 1.8.0 and an available version of 1.8.1, but nothing I can seem to do updates to the newer version.

Matt Kropp

Matt Kropp • October 25, 2022

Can I just use the top menu and click help-> Check for Updates to update R Studio?

Hatem Kotb

Hatem Kotb • October 27, 2023

Non git-related question but you guys removed the dark theme or is it just me? I really liked it :)

David Keyes

David Keyes Founder • October 27, 2023

I think we had dark mode on the old website. We're looking to add it back on the new website, but don't have any details yet on what exactly that might happen.

Hatem Kotb

Hatem Kotb • July 1, 2024

I'm back to the course (yaay), and still craving for that dark theme haha. Keep us posted! :)

David Keyes

David Keyes Founder • July 1, 2024

New website is launching later this month. Won't have dark mode at the start, but we may add it.

Hatem Kotb

Hatem Kotb • July 1, 2024

After installing the newest version of R, it is not automatically detected in Rstudio. Any way to 'force' that link?

Hatem Kotb

Hatem Kotb • July 1, 2024

Found it through the Global settings, working now. Apologies for the comments ^__^

Kurt Birson

Kurt Birson • July 9, 2024

There is an easy way to reinstall all your packages at once - before you update R, you can use the base function installed.packages(). store this as a dataframe and assign to an object. You can write the df to a csv. After you've updated R, next time you open rstudio, read that csv and save the first column (package name) as a vector or list. Then use the install.packages() function with the list object in the parenthesis. It will install all the packages from that list that you had previously!

David Keyes

David Keyes Founder • July 10, 2024

This is a really great idea! Here is code to do this in case anyone wants to run it:

library(tidyverse)

my_packages <-
  installed.packages() |> 
  as_tibble() |> 
  pull(Package)

install.packages(my_packages)