Have you installed any ipython notebook in your machine yet?
Anyways, I’m going to elaborate the steps that helped me to run R on Jupyter ipython notebooks from scratch.
To enable R in Jupyter, you will need IRKernel (dedicated kernel for R) which is available at github. Below are the complete steps which I followed:
Step1: Download Anaconda from here: Anaconda Download In simple words, ipython notebooks live in Anaconda software. It is highly recommended for Jupyter notebooks
**Step 2:** After you've successfully downloaded, open 'Anaconda Command Prompt'. Faster way is to search it in your OS. Anaconda command prompt looks like this.
**Step 3:** Now type the following commands in prompt
Voila! you’ve finally started your first ipython notebook. It looks like this:
Click on ‘New’ on the right. You will only find Python 2 in your notebooks section. Lets add R now.
Step 4: Update your ipython notebook with this command (screenshot below)
conda update ipython-notebook
Step 5: Install IRkernel (screenshot below)
conda install -c r ipython-notebook r-irkernel
Step 6: You can now open R in your commands prompt with this command.
Step 7: Install some necessary packages used by R kernel on ipython notebook
install.packages(c('rzmq','repr','IRkernel','IRdisplay'), repos = 'http://irkernel.github.io/', type = 'source')
Step 8: After the packages are successfully downloaded and installed. Type this:
Step 9: Type quit
**Step 10:** Start your ipython notebook now
Congratulations! You’ve now installed R in your ipython notebook.
**Click on R and start working.**