I assume you are new to Linux. Which distro are you using? You can download them for your distro (of course, I assume you are not on sabayon/gentoo etc, otherwhise you will know better how to compile form source etc).
If you are in something like debian/ubuntu/mint etc, you go for a file with the .deb extension and your installer/manager will do the job. You also have for fedoras and SUSE's like distros.
UInfortunately there is not any kind of 'sudo apt install rstudio' or similar yum's. It this is like you are trying to find, it does not exists. I remember mensajes time ago regarding this, and it looked that some of the dependencies versions RStudio rely on are above the ones to be used for making these sort of installations.
If you tell us with Linux you have (distro and version) I am sure some of us will help you in a more detailed way
cheers
Fer