Installing R Packages Error in readRDS(file) : error reading from connection

MYaseen208 picture MYaseen208 · Aug 11, 2015 · Viewed 36.1k times · Source

Whenever I try to install any package in R on Ubuntu 14.04, I'm getting the following error:

Error in readRDS(file) : error reading from connection

I already tried the methods given here but could not solve the problem.

Answer

Shixiang Wang picture Shixiang Wang · May 6, 2019

I was facing the same error and I restarted R session, it worked for me.