sudo apt-get install r-base
sudo sudo apt-get install gdebi-core
sudo gdebi rstudio-xxx.deb
replacing “rstudio-xxx-.deb” by the exact file name you just downloadedsudo pacman -S yaourt
sudo pacman -S r
yaourt -S rstudio-desktop-bin
R and RStudio ports are available.