地址:(http://irkernel.github.io/installation/)

第一步:在R中安装必备包

install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
devtools::install_github('IRkernel/IRkernel')

 

第二步:连接R与jupyter
在R Console中输入(在Rstudio中无效)

   1、The kernel spec can be installed for the current user with the following line from R:

IRkernel::installspec()

2、To install system-wide, set user to False in the installspec command:
IRkernel::installspec(user = FALSE)

注意:
On OS X, be sure to execute this in R started from the Terminal, not the R App!
(This is because the R app doesn’t honor $PATH changes in~/.bash_profile)

转载于:https://www.cnblogs.com/lantingg/p/9244667.html

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐