Skip to content

RStudio OnDemand - Environments

Uses the central build and not environments

It is possible to use Jupyter notebook with R on Alma for something interactive.

To do this you create a conda environment in similarly to python, and then install R and the IRkernel. This is a bit more complicated than python, but it is possible. You can then run R in a Jupyter notebook.

  1. Use conda to create a new environment in the mamba R documentation and activate it.

    conda create --name my-conda-r -c conda-forge -c bioconda -c r -c defaults r-base=4.3
    conda activate my-conda-r
    

  2. Install the r-irkernel package

    conda install ipykernel r-irkernel
    

  3. Activate the kernel with python

    python -m ipykernel install --user --name=my-conda-r
    

  4. Start Jupyter OnDemand

The dropdown for the kernels will now include this environment: alt text