Reading .RDS files on R studio

rstudio

#1

...

I have R studio and I want to access an .rds file in that. I get the error and I tried surfing on internet to solve the error but unfortunetely I cant.

Blockquote
readRDS('C\users\UJJVAL\Desktop\european_soccer.rds')
Error in gzfile(file, "rb") : cannot open the connection
In addition: Warning message:
In gzfile(file, "rb") :
cannot open compressed file 'C\users\UJJVAL\Desktop\european_soccer.rds', probable reason 'No such file or directory'


#2

I'm assuming you're on Windows given the drive label, but it looks like you're missing a semi-colon after the drive.

Try:

readRDS('C:\users\UJJVAL\Desktop\european_soccer.rds')