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,
? Fri, 22 Mar 2024 14:02:09 -0500 Val <valkremk at gmail.com> ?????:> 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.This error happens very early when R tries to load the file, right at the first few bytes. Is "X1.RData" large? Can you share it, or at least a hexadecimal dump of the first few hundred bytes? -- Best regards, Ivan