Our objective is to create a directory within your Home folder and then use a variable to point R to the directory in your home so the package can be installed.
At the shell prompt, enter the following command:
then from within R you can do:
and you’re done.
So you don’t have to type it every time, put the export command in your .bashrc file:
If you encounter any difficulties with your R libraries, please contact the College of Public Health IT Office.