Please please help me. I was working on a project I saved my file to my desktop . yesterday after closing I pushed unsaved by mistake. I opened R today and it shows me the code that I had saved before.all my new codes disappeared I worked very hard in 4 last days and made some changes, is there a way to recovery my unsaved codes?
Asked
Active
Viewed 6,929 times
2 Answers
2
Try history(Inf)
to get command history, even from previous sessions.

David Jorquera
- 2,046
- 12
- 35
-
-
-
check out @Iman answer here: https://stackoverflow.com/questions/35223435/how-to-get-unsaved-script-tabs I think this can be useful in your case. – David Jorquera Sep 26 '19 at 20:33
-
-
0
There is a simple way. Go to My Computer -> Documents -> and there you should see your unsaved .R scripts

PsychometStats
- 340
- 1
- 7
- 19
-
-
I use windows, but the basic idea is that your closed .R tabs are not automatically deleted from your machine, rather can be accessed from the documents folder. Try to find the MAC alternative of My Computer -> Documents folder in your system. Also, if you remember the name of your closed tab, try to search in your machine for that, e.g. vectors.R – PsychometStats Sep 27 '19 at 12:40