
Download the distribution archive from the source for example, to download foo-1.0.3.tar.gz from the CRAN repository, on the command line, enter:. Use your preferred editor to add this line to your R setting file (replace ~/r-packages with the path to the subdirectory you created for R packages):. Renviron) in your home directory on the command line, enter: Create an R setting file (for example. Create a subdirectory for the R packages you're installing (for example, ~/r-packages) on the command line, enter:. To add R to your user environment, load the r module on the command line, enter:įor more, see Use modules to manage your software environment on IU research supercomputers. The IU research supercomputers use module-based environment management systems that provide a convenient method for dynamically customizing your software environment. To install R packages on an IU research supercomputer, you must have R added to your user environment. If you know several researchers are interested in using an R package that is not already installed, you can send a request to the Research Applications and Deep Learning (RADL) team to have it installed as a system-wide site package. If you have a unique need for a third-party R package that is not installed, you can install the package in your home directory. On Indiana University's research supercomputers, many third-party R packages are installed to supplement commonly used R builds.
Developers commonly contribute packages to R package repositories, such as the Comprehensive R Archive Network (CRAN) repository. R packages are extensions to the R language.