goldingn / versions

Query and Install Specific Versions of Packages on CRAN
Other
24 stars 7 forks source link

Error in readRDS(dest) #21

Open hughjonesd opened 6 years ago

hughjonesd commented 6 years ago

I get this error a lot, and it seems to be after a previous failure to install. Something like:

> versions::install.versions('huxtable', '2.0.0', lib = '~/.pastapi')
Error in download.file(url, file, quiet = TRUE) : 
  cannot open URL 'https://mran.revolutionanalytics.com/snapshot/2018-03-03/src/contrib/Archive/huxtable'
> versions::install.versions('huxtable', '2.0.0', lib = '~/.pastapi')
Error in readRDS(dest) : error reading from connection

The error is from available.packages and comes from the relevant rds file existing, but being of size 0.

goldingn commented 6 years ago

Hmmm, I can't replicate this error. Any idea how to make this fail consistently so I can help debug?

hughjonesd commented 6 years ago

I wish!!

I think it is after a previous failure to install, which maybe leaves an empty file on the system... but it is very intermittent... like the performance of MRAN itself AFAICS.

Will tell you if I get further.

David

On Sun, 4 Mar 2018 at 00:38, Nick Golding notifications@github.com wrote:

Hmmm, I can't replicate this error. Any idea how to make this fail consistently so I can help debug?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/goldingn/versions/issues/21#issuecomment-370191929, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjJ94cSYc0kbHTKvOVOL5DEWDQDdA9Eks5tazdxgaJpZM4Sa6pe .

-- Sent from Gmail Mobile