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

后端 未结 9 1450
鱼传尺愫
鱼传尺愫 2021-01-03 19:48

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
<         


        
9条回答
  •  礼貌的吻别
    2021-01-03 20:10

    Make sure you are saving the rds file in correct format :

    saveRDS(model, "path/file.rds")
    

    Then read the .rds file using

    model <- readRDS("path/file.rds")
    

提交回复
热议问题