Search code examples
ripythonjupyter

Installing R kernel for Ipython on Windows


I am on Windows 10. I have installed R-3.2.0, Anaconda 2.2.0 64 bit, RStudio-0.99.446. Also, edited system path variable to include R installation directory.

I am following all the instruction given in https://github.com/IRkernel/IRkernel but I am not getting R kernel when I open Ipython notebook.

Can anybody tell what am I missing?


Solution

  • Got it working, after following all the process mentioned in IRkernel GitHub page. Create kernel.json file in C:\Users\[username]\.ipython\kernels\R_kernel, content of the file should be

    {"argv": ["C:/Program Files/R/R-3.2.0/bin/R.exe","-e","IRkernel::main()",
    "--args","{connection_file}"],
    "display_name":"R"
    }
    

    Note that instead of forward slash path should contain backward slash as mentioned above.