Package installation problems on R version 4.2.1 on Windows 10

Greetings Rstudio community,

I hope my message finds you all fine. I have a small problem. I recently installed R version 4.2.1 on my Windows 10 work laptop. I was trying to install a number of packages like ggplot2, dplyr, remotes, and a bioinformatic tool called Seurat. I used the standard install.packages() function and for each package I attempt to install, I get the following error messages:

Warning in install.packages :
kann nicht auf den Index für das Repository zugreifen:
cannot open URL

Warning in install.packages :
package ‘ggplot2’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at cran website

(*Sorry some message text may be in German which is inconvenient for non-German speakers)

Here you find all R version information:
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23 ucrt)
nickname Funny-Looking Kid

I would appreciate any help on how to solve this package installation problem.

Thank you very much.


This seems like a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice ( or you could choose one that is geographically closer to you.
  • Disable secure download setting.
  • Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.