如何在jupyter中安装R

地址:(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