The edition of RStudio you're downloading is intended for use with CentOS 8. You might have better luck with this copy:
wget https://download2.rstudio.org/server/centos6/x86_64/rstudio-server-rhel-1.2.5001-x86_64.rpm
sudo yum install rstudio-server-rhel-1.2.5001-x86_64.rpm
Note that while the URL says CentOS 6, it should be compatible with both CentOS 6 and 7.