Installing R
We recommend installing multiple versions of R because an environment with multiple versions of R helps provide a stable, reproducible environment for your R developers.
Install R using the directions at https://docs.posit.co/resources/install-r/.
Recommended installation directories
Posit Workbench automatically scans for versions of R at the following locations:
/usr/lib/R
/usr/lib64/R
/usr/local/lib/R
/usr/local/lib64/R
/opt/local/lib/R
/opt/local/lib64/R
In addition, Posit Workbench scans all subdirectories of the following directories within /opt
:
/opt/R
/opt/local/R
For example, any of the following installed versions of R will be automatically detected by Posit Workbench:
/opt/R/4.2.2
/opt/R/4.3.0
/opt/local/R/4.2.2
/opt/local/R/4.3.0
If you have versions of R located at other places in the file system, Posit Workbench can still utilize them. However, you’ll need to explicitly specify their location in a configuration file (this is covered in more detail in the Using Multiple Versions section).