[R] Error message

Val v@|kremk @end|ng |rom gm@||@com
Fri Mar 22 20:02:09 CET 2024


Hi all,

I am creating an X1.RData file using the R 4.2.2 library.
   x1.R
    save(datafilename, file="X1.RData")

When I am trying to load  this file using another script

X2.R
load("X1.RData")

I am getting this error message:
 Error in load("X1.RData", :
 bad restore file magic number (file may be corrupted)  .. no data  loaded.

I am using the same R library (R 4.2.2)

What would be the cause for this error message and how to fix it?

Thank you,



More information about the R-help mailing list