I am trying to use GitHub Codespace with R + Jupyter Notebook setting. However, the notebooks on the codespace do not locate a correct kernel for R.
Here are the steps I went through:
I created a Codespace for my repo.
I clicked on
'Configure Dev Container'
and selected"Jupyter Data Science Notebooks"
, which is supposed to support Python, R, and Julia.After rebuild, I installed "R" VS code extension and checked that R codes on .r script run fine.
I executed R on Bash, and then installed packages "languageserver"
and "IRkernel"
. IRkernel was already installed.
- Then, I executed
IRkernel::installspec()
.
I checked using jupyter kernelspec list
that there is a Jupyter kernel for R:
However, I don't see a correct R kernel on Jupyter notebook, but instead there is a kernel named "R" with a path to Python:
Jupyter kernel list on notebook
What should I do to have the correct R kernel show up on Jupyter notebook?