Kernel Error in R Jupyter Notebook due to Anaconda?

梦想的初衷 提交于 2019-12-23 05:02:32

问题


I need to bundle R scripts into some Notebook such as Jupyter Notebook. My OSX setup contains Homebrew, Rstudio and Anaconda. Next I try to get R in Jupyter Notebook working. I am getting the following error

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/bin/R': '/usr/local/Cellar/r/3.3.3_1/R.framework/Resources/bin/R'

that shows that paths are somehow messed up. Also, the Jupyter Notebook shows Kernel Error in Red. The path /Users/hhh/anaconda3/envs/ is a Anaconda path so this must be an issue with Anaconda and Jupyter Notebook.

How to get R running in Jupyter Notebook under Conda? How to resolve the Kernel error?


Questions separated about potential Conflicts

  1. Potential conflicts due to Homebrew and Anaconda here.

回答1:


Your conda manages your bindings to R. You need to install the IRkernel package via conda such that

$ conda install -c r r-irkernel 

to resolve the error.



来源:https://stackoverflow.com/questions/53975454/kernel-error-in-r-jupyter-notebook-due-to-anaconda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!