I am a little confused by your question,
You can redownload R & RStudio for free.
- R is here: https://www.r-project.org/
- And RStudio: Download RStudio - RStudio
If you're asking about deleted project files (your data, R scripts, etc), your recover options are determined by your machine's operating system.