Skip to content

2.1 Lab

Task: Install R (v3.6.0) from pre-compiled binaries#

RStudio recommended best practice is to install R from pre-compiled binaries on a Linux server.

Refer to

Your task is to install R (version 3.6.0) from the pre-compiled binaries, following these instructions.

For your convenience, we repeat the instructions here. If in doubt. follow the advice in the official documentation.

sudo apt-get update
sudo apt-get install gdebi-core

Specify the R version as an environment variable:

export R_VERSION=3.6.0

Download and install R

curl -O${R_VERSION}_1_amd64.deb
sudo gdebi r-${R_VERSION}_1_amd64.deb


How do you know you've done it?

Verify your installation:

/opt/R/${R_VERSION}/bin/R --version

Your output should be similar to this:

R version 3.6.0 (2019-04-26) -- "Planting of a Tree"