Re: Problem with updating packages

Rui Barradas via R-help <[email protected]> Wed, 27 May 2026 19:50:20 +0100
Newsgroups gmane.comp.lang.r.general
Message-ID <[email protected]>
Às 17:01 de 27/05/2026, Karl Schilling escreveu:
> I am running R under Windows 11. recently updated R to the 4.6patchhed 
> version. I then copied my packages from my previous version (4.5) to the 
> library of 4.6. Then I updated all packages.
> 
> Since then, I see the following behavior:
> 
> Each time I run "update.packages(ask='graphics',checkBuilt=TRUE)" I am 
> asked TWICE
> 
> "--- Please select a CRAN mirror for use in this session ---".
> 
> And, more embarrassingly, all my Cran and Bioconductor are said to 
> require an update. That also happens when I run "update.packages", say, 
> one hour after my last update.
> 
> And when I run "old.packages()", it seems that all my packages are 
> identified as being old.
> 
> Any suggestions what might be going on?
> 
> Thank you so much in advance,
> 
> Karl Schilling
> 
> ______________________________________________
> [email protected] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide https://www.R-project.org/posting- 
> guide.html
> and provide commented, minimal, self-contained, reproducible code.
Hello,

I am also running R 4.6 on Windows 11.
You can set a CRAN mirror in your etc/Profile.site file.
If you edit, you will see


# set a CRAN mirror
# local({r <- getOption("repos")
#       r["CRAN"] <- "http://my.local.cran"
#       options(repos=r)})


Substitute your mirror for 'my.local.cran'.

r["CRAN"] <- "https://cloud.r-project.org/"

works everywhere.
Then, uncomment the 'local' statement and restart R.

Hope this helps,

Rui Barradas