If you do not have R, install the latest version from https://cran.rstudio.com/. Then, install RStudio, an Integrated Development Environment (IDE) for R, from https://www.rstudio.com/products/rstudio/download/. Both are open source and free to download and use. RStudio is managed by the RStudio company, based in Boston, which also offers paid support and an enterprise version of the software.