Building things from source can take hours. If you don’t want to wait so long, you can try the pre-built binary version rstudio-desktop-bin. That seems to be what most people are using (based on AUR popularity).
As per Arch wiki you need the gcc-fortran package to install some R packages. Looks like you don’t have it installed.