sol-eng / sys-admin-cheatsheet

Cheat sheet for RStudio Team system administration
https://colorado.rstudio.com/rsc/rstudio-team-sysadmin-cheatsheet/
MIT License
7 stars 2 forks source link

Suggestion: add create a symlink in R #3

Open emcrisan opened 4 years ago

emcrisan commented 4 years ago

Suggest that add ask of students to progress through the symlink commands in https://docs.rstudio.com/resources/install-r/

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.