Lost the content of my main script

I downloaded rstudio the other day again and they offered a free rstudio pro version and since I was finishing my project today, i decided to try the rstudio pro version and yesterday rstudio kept freeezing and had to execute my code many times until it crashed and i lost the content of my main script. I see the if i go to user/appdata/local/temp there are many folders. Does anyone know how I can fix this??