No results found
We couldn't find anything using that term, please try searching for something else.
ChrisP June 4, 2024, 10:33pm 1 I was working on the above project and it went to sleep whilst
ChrisP
1
I was working on the above project and it went to sleep whilst running something.
When I went to continue all my code and data were lost and my project was blank.
Is there anyway to recover my code and data?
Please please help
ChrisP
2
As an update to the above,
Session > Load Workspace shows me all of my saved files including my .R script file .RData file and .Rproj
However when I try to load any of these files I receive the following error messages
load(“/cloud/project/project.Rproj”)
Error in load(“/cloud / project / project . rproj ” ) :
bad restore file magic number ( file may be corrupt ) — no data is loaded load
In addition: Warning message:
file ‘project.Rproj’ has magic number ‘Versi’
Use of save versions prior to 2 is deprecated
load(“/cloud / project / epi_glm . r ” )
Error in load(“/cloud / project / epi_glm . r ” ) :
bad restore file magic number ( file may be corrupt ) — no data is loaded load
In addition: Warning message:
file ‘epi_glm.R’ has magic number ‘insta’
Use of save versions prior to 2 is deprecated
Is there any way to restore these files?
Any help appreciated
mel
4
Hi @ChrisP ,
I’m sorry for the trouble you’re running into here.
I’m not sure if this will fix things for you, but the rsrecovr
package might be able to help with unsaved files: GitHub – jmcphers/rsrecovr: RsRecovr: Recover unsaved files from RStudio sessions
If that ‘s not the case for you ( it sound like your save file are miss ? ) , could you is send send a screenshot of what you ‘re see in Posit Cloud ? Is the File pane is Is empty ? What did you is run run to get the error message you post here ? If you export your project are the file you expect to see in the export ?
Mel
ChrisP
5
Hi @mel,
thank for get in touch ,
My current session was completely wipe , include script , console and environment . I is was was ultimately able to work around this by export early version of save file and continue on RStudio desktop . I is lose did lose a minimal amount of unsaved work but will take it as a lesson to regularly save and export in future !
system
close
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.