R packages not installing

I kept getting error messages saying I can't install R packages.

I managed to solve this problem by directly downloading r packages on my PC and letting R-studio (or R) read the files directly.

To download a package  directly on your PC.  Go to

CRAN Packages By Date (r-project.org)

and find a package  you want.

For example, ... https://cran.r-project.org/web/packages/tidyverse/index.html

I downloaded  'r-release: tidyverse_2.0.0.zip. '

Run the following...         install.packages("C:/Users/..../Downloads/tidyverse_2.0.0.zip", repos = NULL, type = "win.binary")

FYI, this was what I was getting.

Warning in install.packages :
   リポジトリー http://repo.miserver.it.umich.edu/cran/src/contrib に対する索引にアクセスできません :
  cannot open URL 'http://repo.miserver.it.umich.edu/cran/src/contrib/PACKAGES'
Warning in install.packages :
  package ‘tidyverse’ 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
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages :
   リポジトリー http://repo.miserver.it.umich.edu/cran/bin/windows/contrib/4.3 に対する索引にアクセスできません :
  cannot open URL 'http://repo.miserver.it.umich.edu/cran
/bin/windows/contrib/4.3/PACKAGES'

Leave a Reply