Cannot open any RDS files

Viewed 19

I want to open some files that my professor uploaded for us. They are RDS files, and the class is about Machine Learning Methods in R. He provided datasets for us to exercise.

So, to my problem. I initially thought something was wrong with the dataset. I'm trying to import it into R Studio. But he also provided another dataset for another exercise sheet, but I also can't open it. Neither in R console nor in R Studio.

I'm using a MacBook with current software MacOS (don't know which exactly).

In R Console it says:

Fehler in load("/Users/wams/Desktop/Studium/SoSe 2022/Machine Learning/Organisatorisches/Exam/Data_MLEF_Exam1_2022.rds") : 
  unbrauchbare Restore Datei magic number (Datei evtl. beschädigt) -- keine Daten geladen
Zusätzlich: Warnmeldungen:
1: In readChar(con, 5L, useBytes = TRUE) :
  truncating string with embedded nuls
2: file ‘Data_MLEF_Exam1_2022.rds’ has magic number 'X'
  Use of save versions prior to 2 is deprecated 

(Translation: error in.., unusable restore data magic number (data probably broken), no data loaded, Additional warnings:....)

and in R I get:

Fehler in gzfile(file, "rb") : kann Verbindung nicht öffnen
Zusätzlich: Warnmeldung:
In gzfile(file, "rb") :
  kann komprimierte Datei 'stockmarketdata.RDS' nicht öffnen. Grund evtl. 'No such file or directory'

(Translation: error in gzfile, cannot open connection Additionally: warning in gzfile, cannot open compressed data 'stockmarketdata.RDS'. Reason: No such file or directory.)

It doesn't work neither if I open the file in normal R, if I try to load it using code in R studio nor if I use the 'import' function in R Studio: The data isn't loaded and it provides the mentioned above error codes. It works with NO rds file, my classmates seem to be able to open all of them!

0 Answers
Related