0

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?

2 Answers2

2

Try history(Inf) to get command history, even from previous sessions.

David Jorquera
  • 2,046
  • 12
  • 35
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
  • could you please explain more? I have mac –  Sep 27 '19 at 01:56
  • 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