Create a symlink to R
To ensure that R is available on the default system PATH variable, create symbolic links to the version of R that you installed:
Terminal
sudo ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R
sudo ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript
Without that you get the following output when trying to start R from the command line:
admin-user@ip-10-8-8-93:~$ R
Command 'R' not found, but can be installed with:
sudo apt install r-base-core
After run those commands get:
admin-user@ip-10-8-8-93:~$ R
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"
If this is intended for later in the course, please disregard.
Suggest that add ask of students to progress through the symlink commands in https://docs.rstudio.com/resources/install-r/
Without that you get the following output when trying to start R from the command line:
After run those commands get:
If this is intended for later in the course, please disregard.