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 <
Error in readRDS(file) : error reading from connection
Make sure you are saving the rds file in correct format :
rds
saveRDS(model, "path/file.rds")
Then read the .rds file using
.rds
model <- readRDS("path/file.rds")