Error in readChar(con, 5L, useBytes = TRUE)

I am getting an error message when trying to load this data. Any ideas why please?

load("Reisby.Rdata")

> load("Reisby.Rdata")
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file 'Reisby.Rdata', probable reason 'No such file or directory'

The error message gives you the hint: there is no such file in the current directory. Either you have the name wrong or it's in a different directory than your working directory.

2 Likes

Sorry! I had a blind moment. Thanks for pointing it out. The first error thorough me out.

Hi,

The data you're looking for belongs to the spida15 package. You need to install this first from GitHub then load it.

install.packages("remotes")
remotes::install_github("gmonette/spida15")

data(Riesby)

Or you can just grab the file itself from GitHub if that's all you need
https://github.com/gmonette/spida15/blob/master/data/Riesby.rda

load("Riesby.rda")

Hope this helps,
PJ

The above answer by @ martin.R work for me. thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.