NCI Help

Page tree

This procedure assumes you are using the jupyterlab and R installations provided through /apps.

If you are using your own installs of either of these, you may need to make some adjustments to the procedure.

In particular, you will need to make sure you have the compiler module loaded that matches the one used to build your R installation.

If you are using a custom jupyterlab environment, make sure you load that rather than the one shown here.


To use R in jupyterlab, you need to install the R IRkernel package, and then register it with jupyterlab:

  • Open a Gadi terminal
  • In that terminal, type module load jupyterlab/3.4.3-py3.9 R/4.2.2 intel-compiler/2021.7.0
  • Then start R
  • At the R prompt, type install.packages('IRkernel')
  • You may get prompted to create a personal library and select a CRAN mirror.
  • Once the install process completes, type IRkernel::installspec()
  • At this point, exit the R session (type q() )
  • Start a jupyterlab session in ARE, with jupyterlab/3.4.3-py3.9 R/4.2.2 specified in the Modules field (under Advanced options...)

You should now have the option of creating notebooks with the R kernel in the jupyterlab interface.

  • No labels