I have already installed Jupyter notebook in my ubuntu 16.04 machine. In jupyter notebook there is by default python installed. Now I want to use R from jupyter notebook. >
I tried to install IRkernel on my Windows machine. I experienced a similar problem when I ran from within R:
> IRkernel::installspec(user = FALSE)
Error in IRkernel::installspec(user = FALSE) :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 1.
I did not use conda to install Jupyter on my machine, but pip. I have some programmes installed which use python under the hood. It means that I have more than one Python instance on my machine and more Jupyter instances too. To be sure I was referencing the right Jupyter instance, I did this:
> setwd('C:/usr/lib/Python36-32/Scripts')
> IRkernel::installspec(user = FALSE)
[InstallKernelSpec] Installed kernelspec ir in C:\ProgramData\jupyter\kernels\ir
Besides Python, I can now also use R within my notebooks.