Step1:安装基础包
install.packages('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest')
library(devtools)
Step2:在R中安装内核包(IRkernel)
install_github("IRkernel/IRkernel")
#install_github("IRkernel/IRkernel",host = "https://api.github.com",quiet = FALSE)
#遇到"Problem with the SSL CA cert (path? access rights?"问题时候执行
# library(httr)
# set_config(config( ssl_verifypeer = 0L ))library(devtools)
Step3:连接jupyter notebook与R
IRkernel::installspec(user = FALSE)
# IRkernel::installspec(name = 'ir33', displayname = 'R 3.3')
Now:打开你的jupyter notebook,新建文档即可!