Search code examples
rgithubjupyter-notebookdevtools

Cannot install IRkernel with install_github(): Git not installed?


I was trying to get R working with the Jupyter Notebook on my Windows machine. I followed the IRkernel tutorial. However, I can't install the GitHub repository, I always get the error

install_github("IRkernel/IRkernel") Downloading GitHub repo IRkernel/IRkernel@master Error: Git does not seem to be installed on your system.

The devtools package (2.0.1) is installed. install_github also works for example with install_github("StatsWithR/statsr") (Coursera package) (although the devtools package is not even loaded?).

Not sure how to deal with the problem, any ideas? Is my devtools package broken?

Update: Just performed a re-installation of R (deleted all packages): I still get the same error


Solution

  • Thought I would chime in here. I had the exact same problem. I came across this post...https://github.com/IRkernel/IRkernel/issues/594 where Flying Sheep simply states to install git. So went to https://git-scm.com/ and downloaded and installed, then ran the instructions https://irkernel.github.io/installation/ and everything worked. Now using R in Jupyter Nb.