Я использую версию R 3.5.2. У меня проблема с установкой и загрузкой r пакетов. Ниже приведена ошибка, которую я получаю для всех пакетов, но опубликованных для ggplot2.
> install.packages("ggplot2")
Error in readRDS(file) : error reading from connection
Installing package into ‘C:/Users/erenae/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Error in readRDS(file) : error reading from connection
Error in readRDS(file) : error reading from connection
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/ggplot2_3.1.0.zip'
Content type 'application/zip' length 3623175 bytes (3.5 MB)
downloaded 3.5 MB
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\erenae\AppData\Local\Temp\RtmpiEPp3i\downloaded_packages
Error in readRDS(pfile) : error reading from connection
> library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in readRDS(pfile):
error reading from connection