SUPPORT


R development using Jupyter




This section explains you how to use Jupyter for R-Development.


  1. Once the VM is up and running, SSH to VM and run below command to set the password for ubuntu user.

  2. sudo passwd ubuntu


    /img/gcp/r-studio-support/ssh-passwd.png


  3. To access jupyter go to http://VM_Public_IP . Login using ubuntu user and provide password set in the above step.

  4. /img/common/jupyterhub_signin.png


  5. This will log you as an ubuntu user to the jupyter notebook.

  6. /img/gcp/r-studio-support/jupyter_home_page.png



  7. You can create new R Notebooks and run your code. To create new Notebook, click on New and select R from dropdown menu.

  8. /img/gcp/r-studio-support/r-jupyter-new-notebook.png


  9. It will create untitled Notebook in new tab. Click on Untitled to rename this Notebook
  10. /img/gcp/r-studio-support/rename-untitled-notebook.png



  11. Write your code in the cell.To run the code, select the cell then select Run or use the keyboard shortcut CTRL+ENTR
  12. /img/gcp/r-studio-support/running-r-cell.png



  13. Let's display iris table with the library(dplyr)

  14. /img/gcp/r-studio-support/display-iris-table.png



  15. We can create scatter plot using ggplot2 library.
  16. /img/gcp/r-studio-support/scatter-plot.png



  17. You have different option to stop, restart, run all, shutdown kernel in the kernel dropdown menu.

  18. /img/gcp/r-studio-support/kernel-option.png



  19. asterisk (*) in any cell shows that cell is running. Solid cirlce next to R shows that kernel is busy.

  20. /img/gcp/r-studio-support/kernel-running.png



    This way you can create your own R Notebooks in jupyter and run the code.