RStudio has made packages for multiple versions of R available and described how to install them here: https://docs.rstudio.com/resources/install-r/ . That seems to work pr