How to install additional R-Packages

Follow below steps to install additional R-Packages.

  1. Open new ssh shell and run following commands.
  2. /img/gcp/r-studio-support/ssh-option.png

    sudo su

    cd /home/anaconda/bin

    source activate r-env



    This will login you to R shell in r-env environment as root.

  3. Then install library in R shell using below command.

  4. install.packages("gt")



  5. Once installation is complete, test importing library by running “library(gt)” and it should work.

  6. a. SSH terminal with the ubuntu user-


    b. jupyter notebook-


    c. R-Studio on desktop