Struggling to change repo for Linux Ubuntu

Hi all,

I recently tried dual booting Windows with Linux Mint 22.3 (base Ubuntu 24.04 Noble). While testing RStudio on Linux Mint, I'm struggling to change my package repository so that my package installations could load faster.

I tried the Posit Public Package Manager by going to Tools > Global Options > Packages and then changing my primary CRAN repo to https://packagemanager.posit.co/cran/__linux__/noble/latest. There's this warning "CRAN repositories modified outside package preferences" that I don't really understand and can't seem to get rid of.

For good measure I also edited my .Rprofile and restarted R for this to take effect.

options(repos = "https://packagemanager.posit.co/cran/__linux__/noble/latest")

I managed to install tidyverse after a bit of further searching and tinkering, but my other package installations are still taking so long, specifically these ones

install.packages(
  c("arrow", "babynames", "curl", "duckdb", "gapminder", 
    "ggrepel", "ggridges", "ggthemes", "hexbin", "janitor", "Lahman", 
    "leaflet", "maps", "nycflights13", "openxlsx", "palmerpenguins", 
    "repurrrsive", "tidymodels", "writexl")
  )

Upon checking my repo via code, I saw that the repo hasn't changed.

> getOption("repos")
                         CRAN 
"https://cloud.r-project.org" 

What else am I missing? I'm honestly stumped.

Thanks in advance for any insights!

After some further tinkering I think I managed to solve my issue. Rookie me was just having some problems with saving this change permanently in .Rprofile.

Will be closing this topic now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.