cannot open compressed file no such directory

I am trying to find and read an RDS file into Rstudio but apparently it cannot find it?

this is what I keep getting

Error in gzfile(file, "rb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file 'Injuries.Rdata', probable reason 'No such file or directory'

Hi @roguesuperman42 ,
Welcome to the RStudio Community Forum.

Is R looking for the file where you think it is looking?

getwd()  # This is where R is looking
list.files(pattern=".Rdata")   # Are there any .Rdata files in that location?

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.