Hello, I have met an installation problem related to tidyverse packages
when I use
install.packages("tidyverse")
I got success messages
Installing package into ‘C:/Users/amber/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/tidyverse_1.3.0.zip'
Content type 'application/zip' length 440077 bytes (429 KB)
downloaded 429 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\amber\AppData\Local\Temp\RtmpqyXTol\downloaded_packages
then I try to use
library(tidyverse)
I received
Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘vctrs’
I thought the mean reason is vctrs packages, So I tried to install it
install.packages("vctrs")
but the result is
Installing package into ‘C:/Users/amber/OneDrive/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.3.4.zip'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.3.4.zip': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/vctrs_0.3.4.zip'
Warning in install.packages :
download of package ‘vctrs’ failed
I tried to (re)install the package too and discovered it's indeed unavailable. If you look at the CRAN website for the package you can see it says r-release: not available. I think this is an error, but I'm not sure.
I suggest you install the developer version from GitHub meanwhile and hopefully this fixes your issue:
Hello!
I have the same issue today with other packages (it doesn't only affect tidyverse but a lot more).
I have tried to install the developer version from GitHub but I get another error, see error below:
The windows binary does not seem available on CRAN indeed.
In the meantime, you can install from source.
You must install Rtools for that: https://cran.r-project.org/bin/windows/Rtools/ (you may get the issue about github installation for that if you don't have rtools)
install.packages("vctrs", type = "source")
Or maybe easier: You can install from package manager