First day download R but delete all files on Loptop by mistake

I am a little confused by your question,

You can redownload R & RStudio for free.

If you're asking about deleted project files (your data, R scripts, etc), your recover options are determined by your machine's operating system.