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.
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.
I had the same problem:
I found
file.rds
in folderDownloads
, then made copy of file and put in another folder. And then I chose directory in:After this action it works
And one interesting thing. When I copied the file downloaded by the function download.file("http://..../file.rds", "file.rds") and put the file in folder-directory, the problem remained. But when I copied the link http://....../file.rds and pasted it into the address bar, the file was downloaded in the folder Downloads on my computer from which I copied it and moved to the directory -folder. So I did not download file by the function of R download.file, copied file from Downloads and put it in the folder-directory. In this case, it works
Make sure you are saving the
rds
file in correct format :Then read the
.rds
file usingI was getting error running
install.packages("mice")
install.packages("mice")
This worked for me.
I had this error on Windows 10 after installing R 3.4.0 from 3.3.1 (all 64-bit). It was resolved by manually installing an unrelated package from CRAN (I used ggplot2). No idea what the root cause was, but perhaps this will work for you as well.
Output from my code:
Then I restarted R, and ran the same code:
I.e. same code, different error. Odd. Then I restarted R again and installed a random package, then reran my code and it worked.
So, error seems to have had something to do with pacman trying to install effsize.
I also had the same problem. I followed the instructions given here http://www.ryantmoore.org/files/ht/htrtargz.pdf and installed all the required dependencies separately as and when they were required.
1- Install the latest version of R form the CRAN and try to install a package.
2- If it is possible check it with another user account.
3- Try to install the R package locally.
4- If there is an RDS file created by the old version of R you may have another sort of problem, this is the warning from R help:
Ref: help(serialize)