A simple guide to install R Kernel on Jupyter Notebook (Windows). Do not need Anaconda.
- Objectives:
-
- Install R Kernel on Jupyter Notebook (Windows)
-
- Required Tools:
-
- R for windows— R for windows
- JupyterNotebook — Jupyter Notebook
-
- Steps:
-
- Install R. Use the R terminal (do not use R studio) to install R packages:
- install.packages(c(‘repr’, ‘IRdisplay’, ‘evaluate’, ‘crayon’, ‘pbdZMQ’, ‘devtools’, ‘uuid’, ‘digest’))
- install.packages(‘IRkernel’)
- Make Kernel available to Jupyter
- IRkernel::installspec()
- OR IRkernel::installspec(user = FALSE) #install system-wide
- Open a notebook and open new R script.
- Install R. Use the R terminal (do not use R studio) to install R packages:
-
Further notes
- After getting Additional R library might be hard to install inside the Notebook. For workaround, install desired library in R terminal then open the Notebook.
- If need to use R.exe on windows command terminal, ensure R.exe is on path. [likely location: C:\R\R-2.15.1\bin]
- ggplot tutorial
References: