Error: bad restore file magic number (file may be corrupted) – no data loaded
In addition: Warning message:
file ‘ttr.varSD.RDS’ has magic number ‘X’
Use of save versions prior to 2 is deprecated
https://stackoverflow.com/questions/59107717/how-do-i-load-an-rds-file-into-r
You can use function readRDS to restore an object stored in a .RDS file. In your case:您可以使用函数readRDS来还原存储在.RDS文件中的对象。在你的情况下:readRDS('ttr.varSD.RDS')