Load recovered R files in .gz format in Rstudio

Hi, I accidentally used "unlink" in Rstudio on my external harddrive prompting everything to be deleted -- including many R scripts.

I used photorec to try to recover the files on the harddrive, and it seems to be working. I see a few pdfs and .mp4 files that were saved.

There are also many .gz files which I think are the R files. How do I recover them? I've tried using gunzip, but it does not seem to parse the files correctly. Really any help would be super apprecaited.

Edit: Im wondering if R scripts are saved in memory as a certain .gz type and if there's a built in way to read these .gz files.

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.